diff --git a/Cargo.toml b/Cargo.toml index fd62c984749..355324de12e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,6 +6,7 @@ authors = ["The Trussed developers", "Nicolas Stalder ", "Nitrokey edition = "2021" homepage = "https://trussed.dev" license = "Apache-2.0 OR MIT" +repository = "https://github.com/trussed-dev/trussed" [workspace.dependencies] heapless-bytes = "0.3" @@ -17,7 +18,6 @@ serde = { version = "1.0", default-features = false, features = ["derive"] } [package] name = "trussed" version = "0.1.0" -repository = "https://github.com/trussed-dev/trussed" description = "Modern Cryptographic Firmware" readme = "README.md" @@ -25,9 +25,10 @@ authors.workspace = true edition.workspace = true homepage.workspace = true license.workspace = true +repository.workspace = true [dependencies] -trussed-core = { version = "0.1", path = "core" } +trussed-core = { version = "0.1.0-rc.1" } # general bitflags = { version = "2.1" } @@ -211,3 +212,6 @@ required-features = ["crypto-client", "default-mechanisms", "virt"] [package.metadata.docs.rs] features = ["serde-extensions", "virt"] rustdoc-args = ["--cfg", "docsrs"] + +[patch.crates-io] +trussed-core.path = "core" diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md new file mode 100644 index 00000000000..624525aeb95 --- /dev/null +++ b/core/CHANGELOG.md @@ -0,0 +1,10 @@ +# Changelog + +## Unreleased + +- + +## [v0.1.0-rc.1](https://github.com/trussed-dev/trussed/releases/tag/core-v0.1.0-rc.1) (2024-12-20) + +Initial release extracting the core types from `trussed`: the client traits, +the API definition and the types used in the API. diff --git a/core/Cargo.toml b/core/Cargo.toml index cc169c8bfa8..c94b7969745 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -1,11 +1,13 @@ [package] name = "trussed-core" -version = "0.1.0" +version = "0.1.0-rc.1" +description = "Core types for the trussed crate" authors.workspace = true edition.workspace = true homepage.workspace = true license.workspace = true +repository.workspace = true [dependencies] heapless-bytes.workspace = true @@ -51,3 +53,6 @@ tdes = [] totp = [] trng = [] x255 = [] + +[package.metadata.docs.rs] +all-features = true diff --git a/core/README.md b/core/README.md new file mode 100644 index 00000000000..b9543a88ab5 --- /dev/null +++ b/core/README.md @@ -0,0 +1,14 @@ +# trussed-core + +Core types for the [`trussed`][] crate. + +This crate contains the Trussed client traits and other types that are needed by applications. +See the [`trussed`][] crate for more information. + +[`trussed`]: https://github.com/trussed-dev/trussed + +#### License + +`trussed` is licensed under either of [Apache License, Version 2.0](LICENSE-APACHE) or [MIT License](LICENSE-MIT) at your option. +
+Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions. diff --git a/core/src/lib.rs b/core/src/lib.rs index 55664fb5dd4..13ad7318cc5 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -1,4 +1,5 @@ #![cfg_attr(not(test), no_std)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] //! Core types for the [`trussed`][] crate. //!