Skip to content

Commit

Permalink
Add rubicon compat check to merde_core, closes #58
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Sep 14, 2024
1 parent f4b128e commit a7eff10
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions merde_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ categories = ["encoding", "parser-implementations"]

[dependencies]
compact_str = { version = "0.8.0", optional = true }
rubicon = "3.4.2"
serde = { version = "1", optional = true }

[features]
Expand Down
7 changes: 7 additions & 0 deletions merde_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,10 @@ where
{
T::from_value(Some(value))
}

rubicon::compatibility_check! {
("merde_core_pkg_version", env!("CARGO_PKG_VERSION")),

#[cfg(feature = "compact_str")]
("compact_str", "enabled")
}

0 comments on commit a7eff10

Please sign in to comment.