Skip to content

Commit b274ca3

Browse files
authored
Add ktls feature (#232)
1 parent 3086061 commit b274ca3

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ idea = []
4848
seed = []
4949
# Forces configuring Engine module support.
5050
force-engine = []
51+
# Enable kTLS support
52+
ktls = []
5153

5254
[workspace]
5355
members = ['testcrate']

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ impl Build {
219219
configure.arg("no-seed");
220220
}
221221

222+
if cfg!(feature = "ktls") {
223+
configure.arg("enable-ktls");
224+
}
225+
222226
if target.contains("musl") {
223227
// Engine module fails to compile on musl (it needs linux/version.h
224228
// right now) but we don't actually need this most of the time.

0 commit comments

Comments
 (0)