Skip to content

Commit e1b210e

Browse files
committed
move stats to rsx
1 parent 0c4a835 commit e1b210e

7 files changed

Lines changed: 234 additions & 295 deletions

File tree

packages/core-template/src/lib.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ mod path;
103103
mod raw;
104104
#[cfg(feature = "serialize")]
105105
mod serialization;
106-
mod stats;
107106
mod storage;
108107

109108
pub use anchor::TemplateAnchor;
@@ -112,15 +111,15 @@ pub use data::{
112111
StaticTemplateNode, StaticTemplateNodeIter, StaticTemplateText, Template,
113112
};
114113
pub use op::DecodedTemplateOp;
115-
pub(crate) use path::TemplateSlotPath;
116-
pub use path::{TEMPLATE_SLOT_PATH_MAX_PATH_BITS, TemplatePath, TemplateSlotTarget};
114+
pub use path::{
115+
TEMPLATE_SLOT_PATH_MAX_PATH_BITS, TemplatePath, TemplateSlotPath, TemplateSlotTarget,
116+
};
117117
pub use raw::TemplateRawTree;
118118
#[cfg(feature = "serialize")]
119119
pub use serialization::{deserialize_option_leaky, deserialize_string_leaky};
120-
pub use stats::{TemplateStatsBuilder, TemplateStorageStats};
121120
#[cfg(debug_assertions)]
122121
pub use storage::build_runtime_template;
123122
pub use storage::{
124123
RuntimeTemplateBuilder, TEMPLATE_STORAGE_DYNAMIC_CAP, TEMPLATE_STORAGE_MAX_CAP,
125-
TEMPLATE_STORAGE_OPS_CAP, TEMPLATE_STORAGE_STRING_CAP, TemplateStorage,
124+
TEMPLATE_STORAGE_OPS_CAP, TEMPLATE_STORAGE_STRING_CAP, TemplateLoweringCursor, TemplateStorage,
126125
};

packages/core-template/src/path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ impl<'de> serde::Deserialize<'de> for TemplatePath {
185185

186186
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
187187
#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
188-
pub(crate) struct TemplateSlotPath(NonZeroU128);
188+
pub struct TemplateSlotPath(NonZeroU128);
189189

190190
/// The static path an anchor binds to and whether that path is the last static node at its level.
191191
#[derive(Clone, Copy, PartialEq, Eq)]

packages/core-template/src/stats.rs

Lines changed: 0 additions & 268 deletions
This file was deleted.

0 commit comments

Comments
 (0)