mirror of
https://github.com/eycorsican/leaf.git
synced 2026-12-05 08:01:26 +00:00
A new interop lane puts a real leaf with each plugin in front of the servers people deploy, built from source at pinned revisions: anytls-go, sing-box stable and its testing branch, mihomo, and the original shadow-tls. Every pair runs the stream behaviours, plus the server's padding scheme checked on the wire, fingerprints, and the connections that must fail: wrong password, hijacked to the real site, TLS 1.2 site in strict mode. AnyTLS skips half-close-tail, which its protocol cannot carry. ShadowTLS marks it a known defect: the host shuts the socket's write side while an engine is still handshaking. `make interop` runs the lane, `make e2e` leaves it out, and CI runs it in a job of its own with the built servers cached. The harness no longer hands out a port twice in one process, and builds upstream Rust servers with their own toolchain, outside the workspace.
29 lines
673 B
TOML
29 lines
673 B
TOML
[workspace]
|
|
members = [
|
|
"leaf",
|
|
"leaf-plugin-abi",
|
|
"leaf-cli",
|
|
"leaf-ffi",
|
|
"leaf-plugins/shadowsocks-cabi-rs",
|
|
"leaf-plugins/tls-cabi-rs",
|
|
"leaf-e2e",
|
|
"leaf-e2e/plugins/conformance-cabi",
|
|
]
|
|
default-members = ["leaf-cli"]
|
|
# The end-to-end suite builds servers from other projects from source, in their
|
|
# own checkouts under here; one of them is a Rust crate, and without this cargo
|
|
# would take it for a member of this workspace and refuse to build it.
|
|
exclude = ["target/e2e-upstream"]
|
|
resolver = "2"
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = true
|
|
# codegen-units = 1
|
|
panic = "abort"
|
|
strip = "symbols"
|
|
|
|
[profile.dev]
|
|
opt-level = 0
|
|
debug = true
|