Rocket

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 7919ceac39b8066aa5cff5c174207397a24c9f92
parent 5ec21d5ba091d45272061dc0d2d08b086cea8b94
Author: Sergio Benitez <sb@sergio.bz>
Date:   Fri, 30 Nov 2018 20:58:20 -0800

Strip dev-dependencies more reliably.

Diffstat:
Mcore/lib/Cargo.toml | 12++++++------
Mscripts/publish.sh | 2+-
2 files changed, 7 insertions(+), 7 deletions(-)

diff --git 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 @@ -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() {