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 + 311a8a7 commit a4f5e70
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,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 +90,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 a4f5e70

Please sign in to comment.