From 7919ceac39b8066aa5cff5c174207397a24c9f92 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Fri, 30 Nov 2018 20:58:20 -0800 Subject: [PATCH] Strip dev-dependencies more reliably. --- core/lib/Cargo.toml | 12 ++++++------ scripts/publish.sh | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/lib/Cargo.toml b/core/lib/Cargo.toml index 128d2908..7fdaa2c8 100644 --- a/core/lib/Cargo.toml +++ b/core/lib/Cargo.toml @@ -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" diff --git a/scripts/publish.sh b/scripts/publish.sh index a59085df..ffb81564 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -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() {