Skip to content

Commit

Permalink
Merge pull request #4 from javitonino/optional_python
Browse files Browse the repository at this point in the history
Make Python support optional
  • Loading branch information
vangheem committed Apr 1, 2024
2 parents deeb351 + 0c5b251 commit 9ceff3a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

10 changes: 7 additions & 3 deletions Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "mrflagly"
version = "0.2.7"
version = "0.2.8"
edition = "2021"
license = "MIT"
description = "No nonsense feature flagging system"
Expand All @@ -11,11 +11,15 @@ readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "mrflagly"
crate-type = ["cdylib"]
crate-type = ["cdylib", "rlib"]
path = "src/lib.rs"

[dependencies]
httptest = "0.15.4"
json = "0.12.4"
pyo3 = { version = "0.18.0", features = ["extension-module"] }
pyo3 = { version = "0.18.0", features = ["extension-module"], optional = true }
ureq = "2.6.2"

[features]
default = ["python"]
python = ["dep:pyo3"]
2 changes: 2 additions & 0 deletions src/lib.rs
@@ -1,5 +1,7 @@
#[cfg(feature = "python")]
pub mod bindings;
pub mod service;

#[cfg(feature = "python")]
pub use bindings::*;
pub use service::*;

0 comments on commit 9ceff3a

Please sign in to comment.