[package]
edition = "2024"
rust-version = "1.89"
name = "l2tp"
version = "0.4.0"
authors = ["metastable-void <mori@menhera.ad.jp>"]
build = false
exclude = [
".github/",
".licenserc.yaml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-level L2TP interface for Linux kernel"
readme = "README.md"
keywords = [
"l2tp",
"netlink",
"linux",
]
categories = [
"network-programming",
"os::linux-apis",
]
license = "MIT"
repository = "https://github.com/menhera-org/l2tp-rs"
[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]
[features]
cli = [
"serde",
"dep:clap",
"dep:serde_json",
"tokio/rt-multi-thread",
"tokio/macros",
]
serde = ["dep:serde"]
[lib]
name = "l2tp"
path = "src/lib.rs"
[[bin]]
name = "l2tp"
path = "src/bin/l2tp/main.rs"
required-features = ["cli"]
[[test]]
name = "privileged"
path = "tests/privileged.rs"
[dependencies.clap]
version = "4"
features = ["derive"]
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "1"
optional = true
[target.'cfg(target_os = "linux")'.dependencies.futures]
version = "0.3"
[target.'cfg(target_os = "linux")'.dependencies.genetlink]
version = "0.3"
[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2"
[target.'cfg(target_os = "linux")'.dependencies.log]
version = "0.4"
[target.'cfg(target_os = "linux")'.dependencies.netlink-packet-core]
version = "0.9"
[target.'cfg(target_os = "linux")'.dependencies.netlink-packet-generic]
version = "0.5"
[target.'cfg(target_os = "linux")'.dependencies.netlink-packet-l2tp]
version = "0.4"
[target.'cfg(target_os = "linux")'.dependencies.netlink-proto]
version = "0.13"
[target.'cfg(target_os = "linux")'.dependencies.netlink-sys]
version = "0.9"
[target.'cfg(target_os = "linux")'.dependencies.thiserror]
version = "2"
[target.'cfg(target_os = "linux")'.dependencies.tokio]
version = "1"
features = [
"rt",
"sync",
"net",
]
[target.'cfg(target_os = "linux")'.dev-dependencies.bytes]
version = "1"
[target.'cfg(target_os = "linux")'.dev-dependencies.ciborium]
version = "0.2"
[target.'cfg(target_os = "linux")'.dev-dependencies.postcard]
version = "1"
features = ["alloc"]
default-features = false
[target.'cfg(target_os = "linux")'.dev-dependencies.serde_json]
version = "1"
[target.'cfg(target_os = "linux")'.dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"time",
]