mirror of https://github.com/rwf2/Rocket.git
Strip dev-dependencies more reliably.
This commit is contained in:
parent
5ec21d5ba0
commit
7919ceac39
|
@ -14,6 +14,9 @@ license = "MIT/Apache-2.0"
|
|||
build = "build.rs"
|
||||
categories = ["web-programming::http-server"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
|
||||
[features]
|
||||
default = ["private-cookies"]
|
||||
tls = ["rocket_http/tls"]
|
||||
|
@ -33,13 +36,10 @@ base64 = "0.10"
|
|||
pear = "0.1"
|
||||
isatty = "0.1"
|
||||
|
||||
[dev-dependencies]
|
||||
# TODO: Find a way to not depend on this.
|
||||
lazy_static = "1.0"
|
||||
|
||||
[build-dependencies]
|
||||
yansi = "0.5"
|
||||
version_check = "0.1.3"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
[dev-dependencies]
|
||||
# TODO: Find a way to not depend on this.
|
||||
lazy_static = "1.0"
|
||||
|
|
|
@ -10,7 +10,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|||
source "${SCRIPT_DIR}/config.sh"
|
||||
|
||||
function strip_dev_dependencies() {
|
||||
perl -i.bak -p0e 's/\[dev-dependencies\][^\[]*//smg' "${1}/Cargo.toml"
|
||||
perl -i.bak -p0e 's/\[dev-dependencies\].*//smg' "${1}/Cargo.toml"
|
||||
}
|
||||
|
||||
function restore_dev_dependencies() {
|
||||
|
|
Loading…
Reference in New Issue