Skip to content

Commit 63de2c4

Browse files
authored
Merge pull request #688 from pragma-org/jeluard/cargo-release
chore: prepare for amaru release
2 parents 345e74b + 92be61e commit 63de2c4

File tree

132 files changed

+33371
-59
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+33371
-59
lines changed

.github/check-license-header.config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
"examples/**/*.rs",
66
"simulation/**/*.rs"
77
],
8+
"exclude": [
9+
"crates/vendor/**"
10+
],
811
"license": ".github/license-Apache-2.0.template.rs"
912
},
1013
{

.github/workflows/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,23 @@ jobs:
231231
run: |
232232
docker buildx imagetools inspect ${{ env.DOCKER_IMAGE }}:${{ steps.meta.outputs.version }}
233233
234+
cargo-publish:
235+
name: Publish crates to crates.io
236+
runs-on: ubuntu-latest
237+
if: ${{ github.ref_type == 'tag' }}
238+
needs: rust-build
239+
environment: crates-io
240+
241+
steps:
242+
- uses: actions/checkout@v4
243+
with:
244+
submodules: true
245+
246+
- name: Publish crates
247+
env:
248+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
249+
run: cargo release publish --workspace --no-confirm
250+
234251
merge-artifacts:
235252
name: Merge build artifacts
236253

Cargo.lock

Lines changed: 35 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ authors = ["Amaru Maintainers <amaru@pragma.builders>"]
77
repository = "https://github.com/pragma-org/amaru"
88
homepage = "https://github.com/pragma-org/amaru"
99
documentation = "https://docs.rs/amaru"
10+
keywords = ["cardano", "blockchain", "node", "ouroboros", "crypto"]
11+
categories = ["cryptography::cryptocurrencies"]
1012
rust-version = "1.93" # ⚠️ Also change in rust-toolchain.toml
1113

1214
[workspace]
13-
members = ["crates/*", "simulation/*"]
15+
members = ["crates/*", "crates/amaru-observability/macros/", "crates/vendor/*", "simulation/*"]
16+
exclude = ["crates/vendor"]
1417
default-members = ["crates/*"]
1518
resolver = "2"
1619

@@ -113,8 +116,10 @@ pure-stage = { path = "crates/pure-stage" }
113116
uplc-turbo = { git = "https://github.com/pragma-org/uplc" }
114117

115118
# The vrf crate has not been fully tested in production environments and still has several upstream issues that are open PRs but not merged yet.
116-
vrf_dalek = { git = "https://github.com/txpipe/vrf", rev = "044b45a1a919ba9d9c2471fc5c4d441f13086676" }
117-
kes-summed-ed25519 = { git = "https://github.com/txpipe/kes", rev = "f69fb357d46f6a18925543d785850059569d7e78" }
119+
vrf_dalek = { package = "amaru-vrf-dalek", path = "crates/vendor/amaru-vrf-dalek", version = "0.1.0" }
120+
kes-summed-ed25519 = { package = "amaru-kes-summed-ed25519", path = "crates/vendor/amaru-kes-summed-ed25519", version = "0.2.1" }
121+
# curve25519-dalek fork used by vrf_dalek (txpipe/curve25519-dalek@70a36f41, branch ietf03_vrf_compat_ell2)
122+
amaru-curve25519-dalek = { package = "amaru-curve25519-dalek", path = "crates/vendor/amaru-curve25519-dalek", version = "3.2.0" }
118123

119124
# dev-dependencies
120125
assertables = "9.8.2"

crates/amaru-consensus/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ lints.workspace = true
44
name = "amaru-consensus"
55
version.workspace = true
66
edition.workspace = true
7-
description.workspace = true
7+
description = "Consensus engine for the Amaru Cardano node"
88
license.workspace = true
99
authors.workspace = true
1010
repository.workspace = true
1111
homepage.workspace = true
1212
documentation.workspace = true
13+
readme = "README.md"
1314
rust-version.workspace = true
15+
keywords.workspace = true
16+
categories.workspace = true
1417

1518
[features]
1619
default = []

crates/amaru-iter-borrow/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ lints.workspace = true
44
name = "amaru-iter-borrow"
55
version.workspace = true
66
edition.workspace = true
7-
description.workspace = true
7+
description = "Iterator adaptor supporting mutable borrowing of elements"
88
license.workspace = true
99
authors.workspace = true
1010
repository.workspace = true
1111
homepage.workspace = true
1212
documentation.workspace = true
13+
readme = "../../README.md"
1314
rust-version.workspace = true
15+
keywords.workspace = true
16+
categories.workspace = true
1417

1518
[dependencies]
1619
minicbor.workspace = true

crates/amaru-kernel/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ lints.workspace = true
44
name = "amaru-kernel"
55
version.workspace = true
66
edition.workspace = true
7-
description.workspace = true
7+
description = "Core Cardano types, primitives, and domain logic for the Amaru Cardano node"
88
license.workspace = true
99
authors.workspace = true
1010
repository.workspace = true
1111
homepage.workspace = true
1212
documentation.workspace = true
13+
readme = "../../README.md"
1314
rust-version.workspace = true
15+
keywords.workspace = true
16+
categories.workspace = true
1417

1518
[features]
1619
default = []

crates/amaru-ledger/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ lints.workspace = true
44
name = "amaru-ledger"
55
version.workspace = true
66
edition.workspace = true
7-
description.workspace = true
7+
description = "Ledger engine for the Amaru Cardano node"
88
license.workspace = true
99
authors.workspace = true
1010
repository.workspace = true
1111
homepage.workspace = true
1212
documentation.workspace = true
13+
readme = "README.md"
1314
rust-version.workspace = true
15+
keywords.workspace = true
16+
categories.workspace = true
1417

1518
[features]
1619
default = []

crates/amaru-mempool/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
name = "amaru-mempool"
33
version.workspace = true
44
edition.workspace = true
5-
description.workspace = true
5+
description = "Transaction mempool for the Amaru Cardano node"
66
license.workspace = true
77
authors.workspace = true
88
repository.workspace = true
99
homepage.workspace = true
1010
documentation.workspace = true
11+
readme = "../../README.md"
1112
rust-version.workspace = true
13+
keywords.workspace = true
14+
categories.workspace = true
1215

1316
[dependencies]
1417
amaru-kernel.workspace = true

crates/amaru-metrics/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ lints.workspace = true
55
name = "amaru-metrics"
66
version.workspace = true
77
edition.workspace = true
8-
description.workspace = true
8+
description = "Metrics collection and telemetry primitives for the Amaru Cardano node"
99
license.workspace = true
1010
authors.workspace = true
1111
repository.workspace = true
1212
homepage.workspace = true
1313
documentation.workspace = true
14+
readme = "README.md"
1415
rust-version.workspace = true
16+
keywords.workspace = true
17+
categories.workspace = true
1518

1619
[dependencies]
1720
# External Dependencies

0 commit comments

Comments
 (0)