Skip to content

Commit

Permalink
Merge branch 'infrastructure' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
johngigantic committed Oct 19, 2023
2 parents 94ac083 + 3f14449 commit a9c33a7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ jobs:
include:
- rust: nightly
components: rustc-dev
- rust: nightly
name: ARM64
target: aarch64-unknown-none
- rust: nightly
name: ThumbV7
target: thumbv7m-none-eabi
- rust: nightly
name: Windows
os: windows
Expand All @@ -62,7 +56,6 @@ jobs:
components: ${{matrix.components}}
- run: cargo check ${{env.target}} --no-default-features
- run: cargo check ${{env.target}}
- run: cargo check ${{env.target}} --features full
- if: matrix.components == 'rustc-dev'
run: cargo check --benches --all-features --release

Expand Down Expand Up @@ -91,8 +84,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: dtolnay/install@cargo-docs-rs
- run: cargo docs-rs
- run: cargo doc
- run: cargo test --all-features --doc

minimal:
Expand Down
6 changes: 6 additions & 0 deletions drivers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ categories = ["no-std", "embedded", "hardware-support", "science::robotics"]

[dependencies]
bilge = "0.2.0"

# TODO: remove proc-macro-error from dependencies.
# proc-macro-error is not a direct dependency of this crate, but a dependency of bilge.
# It has a bug in v1.0.0, but bilge permissively allows v1.0.0 as the minimum dependency.
# The statement here is to restrict proc-macro-error to v1.0.4 at minimum.
proc-macro-error = "1.0.4"
24 changes: 12 additions & 12 deletions drivers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ pub mod a49xx;
pub mod amt49xxx;
pub mod io;

pub fn add(left: usize, right: usize) -> usize {
left + right
}
// pub fn add(left: usize, right: usize) -> usize {
// left + right
// }

#[cfg(test)]
mod tests {
use super::*;
// #[cfg(test)]
// mod tests {
// use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
// #[test]
// fn it_works() {
// let result = add(2, 2);
// assert_eq!(result, 4);
// }
// }

0 comments on commit a9c33a7

Please sign in to comment.