Skip to content

Commit

Permalink
feat(core): implement Send + Sync (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
52 authored Feb 27, 2024
1 parent 9da04a0 commit 98b1fa9
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <maxkarou@protonmail.com>"]
Expand Down
2 changes: 2 additions & 0 deletions release-plz.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
2 changes: 1 addition & 1 deletion stacks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion stacks/src/clarity/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions stacks/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion stacks/src/transaction/condition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 98b1fa9

Please sign in to comment.