Skip to content

Commit

Permalink
remove arc_type feature
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity committed Aug 30, 2023
1 parent 7273592 commit 78ba8d5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions rust/candid/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "candid"
version = "0.9.4"
version = "0.9.5"
edition = "2021"
authors = ["DFINITY Team"]
description = "Candid is an interface description language (IDL) for interacting with canisters running on the Internet Computer."
Expand Down Expand Up @@ -89,7 +89,6 @@ random = ["parser", "configs", "arbitrary", "fake", "rand"]
parser = ["lalrpop", "lalrpop-util", "logos"]
all = ["random"]
mute_warnings = []
arc_type = []

# docs.rs-specific configuration
# To test locally: RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --features all
Expand Down
14 changes: 0 additions & 14 deletions rust/candid/src/types/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,7 @@ impl TypeContainer {
.into()
}
}
#[cfg(feature = "arc_type")]
#[derive(Debug, PartialEq, Hash, Eq, Clone)]
#[deprecated(
note = "Do not use arc_type feature! There is a 20% to 80% slowdown in deserialization."
)]
pub struct Type(pub std::sync::Arc<TypeInner>);

#[cfg(not(feature = "arc_type"))]
#[derive(Debug, PartialEq, Hash, Eq, Clone)]
pub struct Type(pub std::rc::Rc<TypeInner>);

Expand Down Expand Up @@ -343,13 +336,6 @@ impl std::hash::Hash for Label {
}
}

#[cfg(feature = "arc_type")]
#[deprecated(
note = "Do not use arc_type feature! There is a 20% to 80% slowdown in deserialization."
)]
pub type SharedLabel = std::sync::Arc<Label>;

#[cfg(not(feature = "arc_type"))]
pub type SharedLabel = std::rc::Rc<Label>;

#[derive(Debug, PartialEq, Hash, Eq, Clone)]
Expand Down

0 comments on commit 78ba8d5

Please sign in to comment.