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"
|
build = "build.rs"
|
||||||
categories = ["web-programming::http-server"]
|
categories = ["web-programming::http-server"]
|
||||||
|
|
||||||
|
[package.metadata.docs.rs]
|
||||||
|
all-features = true
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["private-cookies"]
|
default = ["private-cookies"]
|
||||||
tls = ["rocket_http/tls"]
|
tls = ["rocket_http/tls"]
|
||||||
|
@ -33,13 +36,10 @@ base64 = "0.10"
|
||||||
pear = "0.1"
|
pear = "0.1"
|
||||||
isatty = "0.1"
|
isatty = "0.1"
|
||||||
|
|
||||||
[dev-dependencies]
|
|
||||||
# TODO: Find a way to not depend on this.
|
|
||||||
lazy_static = "1.0"
|
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
yansi = "0.5"
|
yansi = "0.5"
|
||||||
version_check = "0.1.3"
|
version_check = "0.1.3"
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[dev-dependencies]
|
||||||
all-features = true
|
# 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"
|
source "${SCRIPT_DIR}/config.sh"
|
||||||
|
|
||||||
function strip_dev_dependencies() {
|
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() {
|
function restore_dev_dependencies() {
|
||||||
|
|
Loading…
Reference in New Issue