Skip to content

Commit

Permalink
feat(workspace): upgrade dep versions (#35)
Browse files Browse the repository at this point in the history
* feat(workspace): upgrade dep versions
  • Loading branch information
52 authored Feb 23, 2024
1 parent d2174af commit 9da04a0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 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.6"
version = "0.2.7"
edition = "2021"
license = "MIT OR Apache-2.0"
authors = ["Max Karou <maxkarou@protonmail.com>"]
Expand Down
14 changes: 7 additions & 7 deletions 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.4"
version = "0.2.7"
optional = true
path = "../stacks_derive"

Expand All @@ -47,22 +47,22 @@ features = ["json"]
rand = "0.8.5"

[features]
default = ["crypto", "clarity", "transaction", "wallet-sdk"]

# Provide convenience derive(...) macros.
derive = ["clarity", "stacks_derive"]
default = ["clarity", "transaction"]

# Provide hex, sha, b58 & c32 primitives & methods.
crypto = []

# Provide clarity types & encoding/decoding methods.
clarity = ["crypto"]

# Provide convenience derive(...) macros.
derive = ["stacks_derive"]

# Provide transaction builders. (transfer, call etc.)
transaction = ["clarity", "typed-builder"]
transaction = ["typed-builder"]

# Provide a wallet-sdk
wallet-sdk = ["crypto"]

# Provide rpc methods.
rpc = ["clarity", "transaction", "ureq", "serde"]
rpc = ["ureq", "serde"]
2 changes: 1 addition & 1 deletion stacks/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub mod wallet;

#[cfg(feature = "derive")]
#[path = "derive.rs"]
pub mod __derive;
mod __derive;

#[cfg(feature = "derive")]
pub mod derive {
Expand Down
4 changes: 2 additions & 2 deletions stacks_derive/src/from_tuple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ where
fn to_tokens(&self, tokens: &mut TokenStream) {
let mut stream = TokenStream::new();

stream.extend(quote!(::stacks_rs::__derive::Error::));
stream.extend(quote!(::stacks_rs::derive::Error::));

match self {
Self::Cast(key, ty, ident) => {
Expand Down Expand Up @@ -183,7 +183,7 @@ pub(crate) fn __impl(input: proc_macro::TokenStream) -> Result<TokenStream> {

Ok(quote!(
impl #imp ::std::convert::TryFrom<::stacks_rs::clarity::Tuple> for #ident #ty #wher {
type Error = ::stacks_rs::__derive::Error;
type Error = ::stacks_rs::derive::Error;
fn try_from(tuple: ::stacks_rs::clarity::Tuple) -> Result<Self, Self::Error> {
use ::stacks_rs::clarity::Cast;
Ok(Self { #(#tokens),* })
Expand Down
4 changes: 2 additions & 2 deletions 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.6"
features = ["derive"]
version = "0.2.7"
features = ["derive", "wallet-sdk"]
path = "../stacks"

0 comments on commit 9da04a0

Please sign in to comment.