Skip to content

Commit

Permalink
Add ktls feature (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
james58899 authored Mar 4, 2024
1 parent 3086061 commit b274ca3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ idea = []
seed = []
# Forces configuring Engine module support.
force-engine = []
# Enable kTLS support
ktls = []

[workspace]
members = ['testcrate']
Expand Down
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ impl Build {
configure.arg("no-seed");
}

if cfg!(feature = "ktls") {
configure.arg("enable-ktls");
}

if target.contains("musl") {
// Engine module fails to compile on musl (it needs linux/version.h
// right now) but we don't actually need this most of the time.
Expand Down

0 comments on commit b274ca3

Please sign in to comment.