Skip to content

Commit

Permalink
Convert api and serialization to features
Browse files Browse the repository at this point in the history
  • Loading branch information
theref committed Jan 30, 2023
1 parent 46d42ab commit c20ac5e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ debug = true
[profile.release]
debug = true
lto = true
codegen-units = 1
codegen-units = 1
4 changes: 4 additions & 0 deletions tpke/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@ harness = false
[profile.release]
opt-level = 3
lto = true

[features]
api = []
serialization = []
4 changes: 3 additions & 1 deletion tpke/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ pub use decryption::*;
pub use key_share::*;
pub use refresh::*;

// TODO: Turn into a crate features
#[cfg(feature = "api")]
pub mod api;

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

pub trait ThresholdEncryptionParameters {
Expand Down

0 comments on commit c20ac5e

Please sign in to comment.