Make all top-level crates publishable.

This commit is contained in:
Sergio Benitez 2018-10-29 04:52:31 -07:00
parent 41de1e62fb
commit ef3e7ca2c6
4 changed files with 12 additions and 15 deletions

View File

@ -3,15 +3,13 @@ name = "rocket_contrib_codegen"
version = "0.4.0-dev"
authors = ["Sergio Benitez <sb@sergio.bz>"]
description = "Procedural macros for the Rocket contrib libraries."
documentation = "https://api.rocket.rs/v0.4/rocket_contrib_codegen/"
documentation = "https://api.rocket.rs/v0.4/rocket_contrib/"
homepage = "https://rocket.rs"
repository = "https://github.com/SergioBenitez/Rocket"
readme = "../../../README.md"
readme = "../../README.md"
keywords = ["rocket", "contrib", "code", "generation", "proc-macro"]
license = "MIT/Apache-2.0"
# if publishing, add to config scripts
publish = false
build = "../../core/lib/build.rs"
[features]
database_attribute = []
@ -22,3 +20,7 @@ proc-macro = true
[dependencies]
devise = "0.1"
quote = "0.6"
[build-dependencies]
yansi = "0.4"
version_check = "0.1.3"

View File

@ -35,7 +35,8 @@ redis_pool = ["databases", "redis", "r2d2_redis"]
[dependencies]
# Global dependencies.
rocket = { version = "0.4.0-dev", path = "../../core/lib/" }
rocket_contrib_codegen = { version = "0.4.0-rc", path = "../codegen", optional = true }
rocket = { version = "0.4.0-rc", path = "../../core/lib/" }
log = "0.4"
# Serialization and templating dependencies.
@ -65,9 +66,6 @@ r2d2_cypher = { version = "0.4", optional = true }
redis = { version = "0.9", optional = true }
r2d2_redis = { version = "0.8", optional = true }
# Contrib codegen dependencies
rocket_contrib_codegen = { path = "../codegen", optional = true }
[target.'cfg(debug_assertions)'.dependencies]
notify = { version = "^4.0" }

View File

@ -11,9 +11,6 @@ keywords = ["rocket", "web", "framework", "code", "generation"]
license = "MIT/Apache-2.0"
build = "../lib/build.rs"
# if publishing, add to config scripts
publish = false
[lib]
proc-macro = true

View File

@ -46,11 +46,11 @@ EXAMPLES_DIR=$(relative "examples") || exit $?
DOC_DIR=$(relative "target/doc") || exit $?
ALL_PROJECT_DIRS=(
"${CORE_LIB_ROOT}"
"${CORE_CODEGEN_ROOT}"
"${CORE_HTTP_ROOT}"
"${CONTRIB_LIB_ROOT}"
"${CORE_CODEGEN_ROOT}"
"${CORE_LIB_ROOT}"
"${CONTRIB_CODEGEN_ROOT}"
"${CONTRIB_LIB_ROOT}"
)
if [ "${1}" = "-p" ]; then