Rename 'codegen_next' to 'codegen'.

This commit is contained in:
Sergio Benitez 2018-10-21 23:53:09 -07:00
parent ed9d6096aa
commit 9ef0b731c8
64 changed files with 10 additions and 10 deletions

View File

@ -4,7 +4,7 @@ codegen-units = 4
[workspace]
members = [
"core/lib/",
"core/codegen_next/",
"core/codegen/",
"core/http/",
"contrib/lib",
"contrib/codegen",

View File

@ -1,9 +1,9 @@
[package]
name = "rocket_codegen_next"
name = "rocket_codegen"
version = "0.4.0-dev"
authors = ["Sergio Benitez <sb@sergio.bz>"]
description = "Procedural macros for the Rocket web framework."
documentation = "https://api.rocket.rs/0.4.0-dev/rocket_codegen_next/"
documentation = "https://api.rocket.rs/0.4.0-dev/rocket_codegen/"
homepage = "https://rocket.rs"
repository = "https://github.com/SergioBenitez/Rocket"
readme = "../../README.md"

View File

@ -18,7 +18,7 @@ categories = ["web-programming::http-server"]
tls = ["rocket_http/tls"]
[dependencies]
rocket_codegen_next = { version = "0.4.0-dev", path = "../codegen_next" }
rocket_codegen = { version = "0.4.0-dev", path = "../codegen" }
rocket_http = { version = "0.4.0-dev", path = "../http" }
yansi = "0.4"
log = "0.4"

View File

@ -98,8 +98,8 @@
//!
//! [testing chapter of the guide]: https://rocket.rs/guide/testing/#testing
#[allow(unused_imports)] #[macro_use] extern crate rocket_codegen_next;
#[doc(hidden)] pub use rocket_codegen_next::*;
#[allow(unused_imports)] #[macro_use] extern crate rocket_codegen;
#[doc(hidden)] pub use rocket_codegen::*;
extern crate rocket_http;
#[macro_use] extern crate log;

View File

@ -34,7 +34,7 @@ SITE_ROOT=$(relative "site") || exit $?
# Root of project-like directories.
CORE_LIB_ROOT=$(relative "core/lib") || exit $?
CORE_CODEGEN_NEXT_ROOT=$(relative "core/codegen_next") || exit $?
CORE_CODEGEN_ROOT=$(relative "core/codegen") || exit $?
CORE_HTTP_ROOT=$(relative "core/http") || exit $?
CONTRIB_LIB_ROOT=$(relative "contrib/lib") || exit $?
CONTRIB_CODEGEN_ROOT=$(relative "contrib/codegen") || exit $?
@ -45,7 +45,7 @@ DOC_DIR=$(relative "target/doc") || exit $?
ALL_PROJECT_DIRS=(
"${CORE_LIB_ROOT}"
"${CORE_CODEGEN_NEXT_ROOT}"
"${CORE_CODEGEN_ROOT}"
"${CORE_HTTP_ROOT}"
"${CONTRIB_LIB_ROOT}"
"${CONTRIB_CODEGEN_ROOT}"
@ -58,7 +58,7 @@ if [ "${1}" = "-p" ]; then
echo "CONTRIB_ROOT: ${CONTRIB_ROOT}"
echo "SITE_ROOT: ${SITE_ROOT}"
echo "CORE_LIB_ROOT: ${CORE_LIB_ROOT}"
echo "CORE_CODEGEN_NEXT_ROOT: ${CORE_CODEGEN_NEXT_ROOT}"
echo "CORE_CODEGEN_ROOT: ${CORE_CODEGEN_ROOT}"
echo "CORE_HTTP_ROOT: ${CORE_HTTP_ROOT}"
echo "CONTRIB_LIB_ROOT: ${CONTRIB_LIB_ROOT}"
echo "CONTRIB_CODEGEN_ROOT: ${CONTRIB_CODEGEN_ROOT}"

View File

@ -20,7 +20,7 @@ fi
echo ":::: Generating the docs..."
pushd "${PROJECT_ROOT}" > /dev/null 2>&1
RUSTDOCFLAGS="-Z unstable-options --crate-version ${ROCKET_VERSION}" \
cargo doc -p rocket -p rocket_contrib -p rocket_codegen_next --no-deps --all-features
cargo doc -p rocket -p rocket_contrib -p rocket_codegen --no-deps --all-features
popd > /dev/null 2>&1
# Blank index, for redirection.