Skip to content

Commit

Permalink
fix: changed const feature to static
Browse files Browse the repository at this point in the history
  • Loading branch information
ZibanPirate committed Nov 21, 2024
1 parent c18b5b9 commit 4837614
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ version = "0.1.0"
edition = "2021"

[features]
default = ["const", "serde_derive", "storage"]
const = []
default = ["static", "serde_derive", "storage"]
static = []
serde_derive = ["dep:serde", "dep:serde_json"]
storage = ["serde_derive"]

Expand Down
2 changes: 1 addition & 1 deletion rust/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg(feature = "const")]
#![cfg(feature = "static")]
use serde_json::Value;
use std::{fs, io, path::Path};

Expand Down
3 changes: 1 addition & 2 deletions rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// @TODO-ZM: change const to static
#[cfg(feature = "const")]
#[cfg(feature = "static")]
pub mod r#static;
#[cfg(feature = "storage")]
pub mod storage;

0 comments on commit 4837614

Please sign in to comment.