Skip to content

Commit

Permalink
build,ci: Make cargo test work (and check in CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
duesee committed Dec 4, 2023
1 parent 604ec07 commit 1a17651
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ jobs:
- name: Install required packages (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install libgssapi-krb5-2 libkrb5-dev
- run: cargo test --workspace
- run: |
# Note: `--workspace` may pull in features.
# However, we also want `cargo test` (w/o features) to work.
cargo test
cargo test --workspace
env:
RUSTFLAGS: ${{matrix.rustflags}} ${{env.RUSTFLAGS}}
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@
//! # fn get_more_auth_data() -> Option<Vec<u8>> { unimplemented!() }
//! // the `config` is provided by the user of this crate. The `writer` is a stand-in for sending
//! // data to other side of the authentication exchange.
//! // Note: The "provider" feature is required.
//! #[cfg(feature = "provider")]
//! fn sasl_authenticate(config: Arc<SASLConfig>, writer: &mut impl io::Write) {
//! let sasl = SASLClient::new(config);
//! // These would normally be provided via the protocol in question
Expand Down
2 changes: 2 additions & 0 deletions src/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
//! type Value = MyDataType;
//! }
//!
//! // Note: The "provider" feature is required.
//! #[cfg(feature = "provider")]
//! fn do_auth(config: Arc<SASLConfig>, selected: &Mechname) {
//! let sasl = SASLServer::<MyValidation>::new(config);
//!
Expand Down

0 comments on commit 1a17651

Please sign in to comment.