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() {