diff --git a/.github/workflows/semantic_pull_request.yml b/.github/workflows/semantic_pull_request.yml index 85cd0539ea9..b788d8a508f 100644 --- a/.github/workflows/semantic_pull_request.yml +++ b/.github/workflows/semantic_pull_request.yml @@ -18,6 +18,7 @@ jobs: rust rust/c509-certificate rust/cardano-chain-follower + rust/catalyst-voting rust/cbork rust/hermes-ipfs dart diff --git a/.vscode/settings.recommended.json b/.vscode/settings.recommended.json index 03f0ee4a800..c152c545fde 100644 --- a/.vscode/settings.recommended.json +++ b/.vscode/settings.recommended.json @@ -37,6 +37,7 @@ "rust", "rust/c509-certificate", "rust/cardano-chain-follower", + "rust/catalyst-voting", "rust/cbork", "rust/hermes-ipfs", "dart", @@ -55,6 +56,9 @@ "-c", "cargo lint-vscode" ], + "rust-analyzer.linkedProjects": [ + "./rust/Cargo.toml" + ], "yaml.schemas": { "https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml" }, diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 45da0f472dc..930e2fc19cd 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -7,6 +7,7 @@ members = [ "cbork", "cbork-abnf-parser", "cbork-cddl-parser", + "catalyst-voting", ] [workspace.package] diff --git a/rust/Earthfile b/rust/Earthfile index 2a74f564b91..cd1d38dfe02 100644 --- a/rust/Earthfile +++ b/rust/Earthfile @@ -12,9 +12,14 @@ builder: DO rust-ci+SETUP COPY Cargo.toml clippy.toml deny.toml rustfmt.toml . - COPY --dir .cargo .config c509-certificate cardano-chain-follower \ - cbork cbork-abnf-parser cbork-cddl-parser \ - hermes-ipfs . + COPY --dir .cargo .config \ + c509-certificate \ + cardano-chain-follower \ + catalyst-voting \ + cbork \ + cbork-abnf-parser \ + cbork-cddl-parser \ + hermes-ipfs . # check : Run basic check. check: @@ -29,12 +34,10 @@ build: DO rust-ci+EXECUTE \ --cmd="/scripts/std_build.py" \ --output="release/[^\./]+" \ - --args1="--libs=c509-certificate" \ - --args2="--libs=cardano-chain-follower" \ - --args3="--libs=cbork-cddl-parser" \ - --args4="--libs=cbork-abnf-parser" \ - --args5="--libs=hermes-ipfs" \ - --args6="--bins=cbork/cbork" \ + --args1="--libs=c509-certificate --libs=cardano-chain-follower --libs=hermes-ipfs" \ + --args2="--libs=cbork-cddl-parser --libs=cbork-abnf-parser" \ + --args3="--libs=catalyst-voting" \ + --args4="--bins=cbork/cbork" \ --docs="true" SAVE ARTIFACT target/$TARGETARCH/doc doc diff --git a/rust/catalyst-voting/Cargo.toml b/rust/catalyst-voting/Cargo.toml new file mode 100644 index 00000000000..c064da2c513 --- /dev/null +++ b/rust/catalyst-voting/Cargo.toml @@ -0,0 +1,13 @@ +[package] +name = "catalyst-voting" +version = "0.1.0" +edition.workspace = true +authors.workspace = true +homepage.workspace = true +repository.workspace = true +license.workspace = true + +[lints] +workspace = true + +[dependencies] diff --git a/rust/catalyst-voting/src/lib.rs b/rust/catalyst-voting/src/lib.rs new file mode 100644 index 00000000000..d207001f1b6 --- /dev/null +++ b/rust/catalyst-voting/src/lib.rs @@ -0,0 +1 @@ +//! Voting primitives which are used among Catalyst ecosystem.