diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 50e9926..04af576 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -82,19 +82,6 @@ jobs: - name: Build docs run: cargo doc --workspace --no-deps - # WHY: Binary builds and runs correctly with default features. - # Catches link errors and missing runtime deps. - smoke: - name: Binary smoke test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - with: - persist-credentials: false - - uses: dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7 # stable - - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 - # PROJECT: replace BINARY_CRATE and BINARY_NAME with your project's values - - name: Build binary - run: cargo build --release -p BINARY_CRATE - - name: Verify binary runs - run: ./target/release/BINARY_NAME --version || ./target/release/BINARY_NAME --help || true + # NOTE: No "Binary smoke test" job — hamma is a library-only workspace + # (dictyon + hamma-core, no [[bin]] targets). Reintroduce when a CLI/daemon + # crate is added, pinning BINARY_CRATE/BINARY_NAME to real values. diff --git a/Cargo.toml b/Cargo.toml index 33f3b00..f3db848 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,31 +45,9 @@ disallowed_types = "deny" snafu = "0.8" # TLS -rustls = { - version = "0.23", - default-features = false, - features = ["logging", "ring", "tls12"], -} tokio-rustls = { version = "0.26", default-features = false } webpki-roots = "1" -# Serialization -serde = { version = "1", default-features = false, features = [ - "derive", - "std", -] } -serde_json = { version = "1", default-features = false, features = ["std"] } - -# Async runtime -tokio = { version = "1", default-features = false, features = [ - "rt-multi-thread", - "macros", - "net", - "time", - "sync", - "io-util", -] } - # Tracing tracing = "0.1" tracing-subscriber = { version = "0.3", features = ["env-filter"] } @@ -93,10 +71,40 @@ proptest = "1" # Local workspace crates hamma-core = { path = "crates/hamma-core", version = "0.1.0" } +# Expanded forms (inline table exceeded 80 columns; MSRV 1.85 predates TOML 1.1 +# multi-line inline tables, so use [workspace.dependencies.X] blocks instead). + +[workspace.dependencies.rustls] +version = "0.23" +default-features = false +features = ["logging", "ring", "tls12"] + +[workspace.dependencies.serde] +version = "1" +default-features = false +features = ["derive", "std"] + +[workspace.dependencies.serde_json] +version = "1" +default-features = false +features = ["std"] + +[workspace.dependencies.tokio] +version = "1" +default-features = false +features = [ + "rt-multi-thread", + "macros", + "net", + "time", + "sync", + "io-util", +] + [profile.dev.package."*"] opt-level = 2 [profile.release] lto = "thin" codegen-units = 1 -strip = true \ No newline at end of file +strip = true