Update lox-distributor Cargo.toml for workspace
This commit is contained in:
parent
98218f7bf9
commit
e888ab4d73
|
@ -1,47 +1,25 @@
|
|||
[workspace]
|
||||
[package]
|
||||
name = "lox-distributor"
|
||||
version = "0.1.0"
|
||||
authors = ["The Tor Project, Inc.", "Lindsey Tulloch <onyinyang@torproject.org", "Cecylia Bocovich <cohosh@torproject.org>"]
|
||||
edition = "2021"
|
||||
rust-version = "1.65.0"
|
||||
homepage = "https://gitlab.torproject.org/tpo/anti-censorship/lox-project/~/wikis/home"
|
||||
description = "Tool for receving resources from rdsys and distributing them to users"
|
||||
keywords = ["tor", "lox", "bridges"]
|
||||
|
||||
# Here we declare that this is a workspace, containing several crates
|
||||
# within it.
|
||||
#
|
||||
# Please keep this list topologically sorted by dependency relation, so
|
||||
# that every crate appears _before_ any other crate that depends on it.
|
||||
members = [
|
||||
"crates/lox-distributor",
|
||||
"crates/lox-library",
|
||||
"crates/lox-utils",
|
||||
"crates/lox-wasm",
|
||||
"crates/rdsys-backend-api",
|
||||
]
|
||||
|
||||
resolver = "2"
|
||||
|
||||
[profile.release]
|
||||
# By default we'd like to get good performance and a small download size.
|
||||
# (Assuming xz compression on the binary.)
|
||||
#
|
||||
# The biggest win is to run `strip --strip-debug` on the binary after
|
||||
# generating it, to throw out debugging symbols that we inherited from
|
||||
# other libraries. Don't do `strip --strip-unused`, though, or you'll
|
||||
# break backtraces. That saves about 21% download size.
|
||||
|
||||
# Using LTO saves a further 14% of download size, and improves performance,
|
||||
# at the cost of compile time.
|
||||
lto = true
|
||||
# Setting codegen-units=1 saves a further 7% download size. It also
|
||||
# improves performance at the cost of compile time.
|
||||
codegen-units = 1
|
||||
# Optimize for size. [Actually this is even smaller than 'z' on rust
|
||||
# 1.56. It saves about 11% download size over the default value of '3'.]
|
||||
opt-level = 's'
|
||||
|
||||
[profile.quicktest]
|
||||
# This profile is meant to be a compromise between "release" (which
|
||||
# takes a long time to build) and "dev" (which can be too slow to actually
|
||||
# use when connecting over the Tor network).
|
||||
inherits = "release"
|
||||
lto = "thin"
|
||||
codegen-units = 16
|
||||
opt-level = 2
|
||||
incremental = true
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
base64 = "0.13.1"
|
||||
hyper = { version = "0.14.24", features = ["server"] }
|
||||
hex_fmt = "0.3"
|
||||
futures = "0.3.26"
|
||||
tokio = { version = "1", features = ["full", "macros", "signal"] }
|
||||
rand = "0.8.5"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_with = "3.0.0"
|
||||
serde_json = "1.0.87"
|
||||
|
||||
lox = { path = "../lox-library", version = "0.1.0"}
|
||||
rdsys_backend = { path = "../rdsys-backend-api", version = "0.1.0"}
|
||||
|
|
Loading…
Reference in New Issue