Skip to content

Commit

Permalink
✨ Place c ffi behind feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
MordragT authored and djudd committed May 7, 2023
1 parent 1bdff46 commit 332bfc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ unicode-segmentation = "1.9"
unicode-normalization = "0.1"
unicode-case-mapping = "0.4"
unidecode = "0.3"
libc = "0.2"
libc = { version = "0.2", optional = true }
phf = "0.11"
serde = { version = "1.0", features = ["derive"], optional = true }
serde_json = { version = "1.0", optional = true }
Expand All @@ -37,6 +37,7 @@ default = []
name_eq_hash = []
serialization = ["serde", "serde_json"]
bench = []
ffi = ["libc"]

[profile.release]
lto = "thin"
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ mod title;
mod transliterate;
mod word;

#[cfg(feature = "ffi")]
pub mod external;

#[cfg(feature = "name_eq_hash")]
Expand Down

0 comments on commit 332bfc4

Please sign in to comment.