From 98b1fa90d3c7546cd6b468ca3c963b59f253f69d Mon Sep 17 00:00:00 2001 From: Max Karou Date: Tue, 27 Feb 2024 02:17:06 +0100 Subject: [PATCH] feat(core): implement `Send` + `Sync` (#36) --- Cargo.toml | 2 +- release-plz.toml | 2 ++ stacks/Cargo.toml | 2 +- stacks/src/clarity/mod.rs | 2 +- stacks/src/lib.rs | 1 + stacks/src/transaction/condition.rs | 2 +- tests/Cargo.toml | 2 +- 7 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 83b6548..ec5dd7f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ resolver = "2" members = ["stacks", "stacks_derive", "tests"] [workspace.package] -version = "0.2.7" +version = "0.2.8" edition = "2021" license = "MIT OR Apache-2.0" authors = ["Max Karou "] diff --git a/release-plz.toml b/release-plz.toml index b0de17d..f9f15b9 100644 --- a/release-plz.toml +++ b/release-plz.toml @@ -6,7 +6,9 @@ changelog_update = false [[package]] name = "stacks-rs" git_tag_enable = true +git_tag_name = "v{{ version }}" [[package]] name = "stacks_derive" git_tag_enable = false +git_tag_name = "derive-v{{ version }}" diff --git a/stacks/Cargo.toml b/stacks/Cargo.toml index 0461eb3..12d544e 100644 --- a/stacks/Cargo.toml +++ b/stacks/Cargo.toml @@ -25,7 +25,7 @@ version = "0.28.2" features = ["recovery"] [dependencies.stacks_derive] -version = "0.2.7" +version = "0.2.8" optional = true path = "../stacks_derive" diff --git a/stacks/src/clarity/mod.rs b/stacks/src/clarity/mod.rs index 73e3bca..53c0a16 100644 --- a/stacks/src/clarity/mod.rs +++ b/stacks/src/clarity/mod.rs @@ -83,7 +83,7 @@ pub(crate) const CLARITY_TYPE_STRING_UTF8: u8 = 0x0e; pub(crate) const CLARITY_TYPE_NON_STD: u8 = 0xff; /// Trait for Clarity types. -pub trait Clarity: Codec + Ident + Any + DynClone + Display + Debug {} +pub trait Clarity: Codec + Ident + Any + DynClone + Send + Sync + Display + Debug {} clone_trait_object!(Clarity); /// Trait for encoding/decoding consensus data. diff --git a/stacks/src/lib.rs b/stacks/src/lib.rs index d5efc0a..b95cb88 100644 --- a/stacks/src/lib.rs +++ b/stacks/src/lib.rs @@ -6,6 +6,7 @@ // // Usage of this file is permitted solely under a sanctioned license. +#![doc = include_str!("../../README.md")] #![deny(warnings, clippy::pedantic)] #![allow( clippy::module_name_repetitions, diff --git a/stacks/src/transaction/condition.rs b/stacks/src/transaction/condition.rs index 30fd60a..291d646 100644 --- a/stacks/src/transaction/condition.rs +++ b/stacks/src/transaction/condition.rs @@ -50,7 +50,7 @@ macro_rules! post_condition { } /// Marker trait for post-conditions. -pub trait Condition: Codec + DynClone + Debug {} +pub trait Condition: Codec + DynClone + Send + Sync + Debug {} clone_trait_object!(Condition); /// The post-condition code. diff --git a/tests/Cargo.toml b/tests/Cargo.toml index 7e3c4ea..c30d6cf 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -8,6 +8,6 @@ repository.workspace = true publish = false [dependencies.stacks-rs] -version = "0.2.7" +version = "0.2.8" features = ["derive", "wallet-sdk"] path = "../stacks"