Skip to content
Closed
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 CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Pin Dusk workspace, template, and test-contract dependencies to the explicit `1.6.0` release constraint.
- Replace the four hand-rolled `#[contract(...)]` directive parsers with a single typed pass returning a `ContractDirectives` struct. Malformed inputs (typo'd keyword, wrong shape, unparseable feeds type, `expose = (...)` with parens, extra tokens after a `(topic, EventType)` tuple) now produce a `compile_error!` instead of being silently dropped. Duplicate directives (within one attribute or across multiple `#[contract(...)]` attributes on the same item) also error [#24].
- Move workspace to Rust edition 2024 on the stable toolchain (MSRV 1.85). Generated contract wrappers now use `#[unsafe(no_mangle)]`.
- Remove `-Z build-std=core,alloc` from contract builds (no longer needed on stable).
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ rust-version = "1.85"
# Workspace internal dependencies
dusk-forge-contract = { version = "0.1.1", path = "./contract-macro/" }

dusk-core = { version = "1.6", git = "https://github.com/dusk-network/rusk", tag = "dusk-core-1.6.0" }
dusk-core = { version = "1.6.0", git = "https://github.com/dusk-network/rusk", tag = "dusk-core-1.6.0" }
bytecheck = { version = "0.6.12", default-features = false }
rkyv = { version = "0.7", default-features = false, features = [
"alloc",
Expand All @@ -59,7 +59,7 @@ wasmtime = "25"
blake3 = "1"

# Pin to match L1Contracts versions
dusk-vm = { version = "1.6", git = "https://github.com/dusk-network/rusk", tag = "dusk-core-1.6.0", default-features = false }
dusk-vm = { version = "1.6.0", git = "https://github.com/dusk-network/rusk", tag = "dusk-core-1.6.0", default-features = false }

# Enable overflow checks in release builds for contract safety
[profile.release]
Expand Down
6 changes: 3 additions & 3 deletions contract-template/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ rust-version = "1.85"
# WASM Dependencies (contract is gated by #![cfg(target_family = "wasm")])
# -----------------------------------------------------------------------------
[target.'cfg(target_family = "wasm")'.dependencies]
dusk-core = { version = "1.6", git = "https://github.com/dusk-network/rusk", tag = "dusk-core-1.6.0" }
dusk-core = { version = "1.6.0", git = "https://github.com/dusk-network/rusk", tag = "dusk-core-1.6.0" }
dusk-data-driver = { version = "0.3", optional = true }
dusk-forge = "0.2.2"

# -----------------------------------------------------------------------------
# Dev Dependencies (for tests running on the host, not in WASM)
# -----------------------------------------------------------------------------
[dev-dependencies]
dusk-core = { version = "1.6", git = "https://github.com/dusk-network/rusk", tag = "dusk-core-1.6.0" }
dusk-vm = { version = "1.6", git = "https://github.com/dusk-network/rusk", tag = "dusk-core-1.6.0", default-features = false }
dusk-core = { version = "1.6.0", git = "https://github.com/dusk-network/rusk", tag = "dusk-core-1.6.0" }
dusk-vm = { version = "1.6.0", git = "https://github.com/dusk-network/rusk", tag = "dusk-core-1.6.0", default-features = false }
tempfile = "3"

# -----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion tests/test-contract/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ types = { path = "../types" }
ff = { version = "0.13", default-features = false }
rand = "0.8"
rkyv = { workspace = true, features = ["validation"] }
rusk-prover = { version = "1.6", git = "https://github.com/dusk-network/rusk", tag = "dusk-core-1.6.0" }
rusk-prover = { version = "1.6.0", git = "https://github.com/dusk-network/rusk", tag = "dusk-core-1.6.0" }
serde_json = { workspace = true, default-features = true }
wasmtime = "25"

Expand Down