Skip to content

Commit

Permalink
add rpc-types-engine
Browse files Browse the repository at this point in the history
  • Loading branch information
refcell committed Jan 8, 2025
1 parent c072df5 commit d8a4b3c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/maili/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ workspace = true
maili-protocol = { workspace = true, optional = true }
maili-provider = { workspace = true, optional = true }
maili-registry = { workspace = true, optional = true }
maili-rpc-types-engine = { workspace = true, optional = true }

[features]
default = ["std", "serde"]

std = [
"maili-protocol?/std",
"maili-registry?/std",
"maili-rpc-types-engine?/std",
]

full = [
Expand All @@ -43,11 +45,13 @@ arbitrary = [

serde = [
"maili-protocol?/serde",
"maili-rpc-types-engine?/serde",
]

# `no_std` support
registry = ["dep:maili-registry"]
protocol = ["dep:maili-protocol"]
rpc-types-engine = ["dep:maili-rpc-types-engine"]

# std features
provider = ["dep:maili-provider"]
4 changes: 4 additions & 0 deletions crates/maili/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ pub use maili_registry as registry;
#[cfg(feature = "provider")]
#[doc(inline)]
pub use maili_provider as provider;

#[cfg(feature = "rpc-types-engine")]
#[doc(inline)]
pub use maili_rpc_types_engine as rpc_types_engine;

0 comments on commit d8a4b3c

Please sign in to comment.