Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/semantic_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
rust
rust/c509-certificate
rust/cardano-chain-follower
rust/catalyst-voting
rust/cbork
rust/hermes-ipfs
dart
Expand Down
4 changes: 4 additions & 0 deletions .vscode/settings.recommended.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"rust",
"rust/c509-certificate",
"rust/cardano-chain-follower",
"rust/catalyst-voting",
"rust/cbork",
"rust/hermes-ipfs",
"dart",
Expand All @@ -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"
},
Expand Down
1 change: 1 addition & 0 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ members = [
"cbork",
"cbork-abnf-parser",
"cbork-cddl-parser",
"catalyst-voting",
]

[workspace.package]
Expand Down
21 changes: 12 additions & 9 deletions rust/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
13 changes: 13 additions & 0 deletions rust/catalyst-voting/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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]
1 change: 1 addition & 0 deletions rust/catalyst-voting/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//! Voting primitives which are used among Catalyst ecosystem.