From 907695f494f6fb19eb187757ebaee85985e6906c Mon Sep 17 00:00:00 2001 From: Geoffrey Borough Date: Mon, 26 Feb 2024 12:36:14 +1100 Subject: [PATCH] Gborough/cargo publish (#2) * updalte cargo exclude list * cargo dist * cargo dist * changelog --- CHANGELOG.md | 3 +-- Cargo.lock | 26 +++++++++++++++++++++++++- Cargo.toml | 3 ++- cliff.toml | 4 ++-- roscal_cli/Cargo.toml | 2 +- roscal_lib/Cargo.toml | 1 + 6 files changed, 32 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bcd482e..f29e401 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,7 @@ -# Changelog +Changelog ## [0.1.0] - 2024-02-26 ### Changed - Initial commit - diff --git a/Cargo.lock b/Cargo.lock index c99a564..c5b8b2c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -850,7 +850,7 @@ dependencies = [ "clap", "iana-time-zone", "rand", - "roscal_lib", + "roscal_lib 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde", "serde_json", "serde_yaml", @@ -885,6 +885,30 @@ dependencies = [ "uuid", ] +[[package]] +name = "roscal_lib" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c1caf1b7cafff5ea0cf0fa15648dda0288d79fadeafd6c53dd8a19a7d95e95b" +dependencies = [ + "chrono", + "derivative", + "derive_builder", + "json-schema-diff", + "lazy_static", + "prettyplease", + "proc-macro2", + "pulldown-cmark", + "quote", + "regex", + "serde", + "serde_json", + "strum", + "syn 2.0.50", + "uriparse", + "uuid", +] + [[package]] name = "rustc-demangle" version = "0.1.23" diff --git a/Cargo.toml b/Cargo.toml index 99a87ef..98562ae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,9 +11,10 @@ ci = ["github"] # The installers to generate for each app installers = [] # Target platforms to build apps for (Rust target-triple syntax) -targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu"] +targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"] # Publish jobs to run in CI pr-run-mode = "plan" +# Skip checking whether the specified configuration files are up to date allow-dirty = ["ci"] [profile.release] diff --git a/cliff.toml b/cliff.toml index 34e61b5..67dcf13 100644 --- a/cliff.toml +++ b/cliff.toml @@ -1,6 +1,6 @@ [changelog] header = """ -# Changelog\n +Changelog\n """ body = """ @@ -30,8 +30,8 @@ footer = """ /compare/{{ release.previous.version }}..HEAD {% endif -%} {% endfor %} + """ - trim = true [git] diff --git a/roscal_cli/Cargo.toml b/roscal_cli/Cargo.toml index 1248a9b..5862b68 100644 --- a/roscal_cli/Cargo.toml +++ b/roscal_cli/Cargo.toml @@ -11,7 +11,7 @@ CLI For Open Security Controls Assessment Language In Rust """ [dependencies] -roscal_lib = { version = "0.1.0", path = "../roscal_lib"} +roscal_lib = "0.1.0" anyhow = "1.0.80" clap = { version = "4.4.18", features = ["derive"] } diff --git a/roscal_lib/Cargo.toml b/roscal_lib/Cargo.toml index 88339f6..2d464f0 100644 --- a/roscal_lib/Cargo.toml +++ b/roscal_lib/Cargo.toml @@ -13,6 +13,7 @@ license = "MIT OR Apache-2.0" keywords = ["OSCAL", "cybersecurity"] categories = ["api-bindings", "encoding"] publish = ["crates-io"] +exclude = ["jsonschema/", "build.rs"] [dependencies] chrono = { version = "0.4.34", features = ["serde"] }