Cargo Features

BoringTun has no features set by default.

[dependencies]
boringtun = { version = "0.6.0", features = ["device", "jni-bindings", "ffi-bindings", "mock-instant"] }
device = socket2, thiserror

Affects boringtun::device

jni-bindings = ffi-bindings, jni

Affects boringtun::jni

ffi-bindings jni-bindings? = tracing-subscriber

Affects boringtun::ffi

mock-instant = mock_instant

mocks std::time::Instant with mock_instant

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

tracing-subscriber ffi-bindings?
jni jni-bindings?

Enables jni ^0.19.0

mock_instant mock-instant?

Enables mock_instant ^0.2

socket2 device?

Enables socket2 ^0.4.7

thiserror device?

Enables thiserror ^1