Skip to content

Commit

Permalink
fix: implement deepsize
Browse files Browse the repository at this point in the history
  • Loading branch information
ncpenke committed Feb 29, 2024
1 parent 8e78ca9 commit a93b767
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions rust/candid/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ candid_derive = { path = "../candid_derive", version = "=0.6.2" }
codespan-reporting = "0.11"
crc32fast = "1.3.0"
data-encoding = "2.4.0"
deepsize = { git = "https://github.com/dscvr-one/deepsize.git", rev = "0.2.0-candid-0.9.3-2", optional = true }
hex = "0.4.2"
leb128 = "0.2.4"
num_enum = "0.6.1"
Expand Down Expand Up @@ -90,6 +91,7 @@ parser = ["lalrpop", "lalrpop-util", "logos"]
all = ["random"]
mute_warnings = []
arc_type = []
deepsize = ["dep:deepsize"]

# docs.rs-specific configuration
# To test locally: RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --features all
Expand Down
1 change: 1 addition & 0 deletions rust/candid/src/types/principal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ pub enum PrincipalError {
/// );
/// ```
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[cfg_attr(feature = "deepsize", derive(deepsize::DeepSizeOf))]
pub struct Principal {
/// Length.
len: u8,
Expand Down

0 comments on commit a93b767

Please sign in to comment.