Rocket

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

commit 9ef0b731c8bc26d4100aac0e93c24513781b36ad
parent ed9d6096aa9382107d55be6f5b791be34637290f
Author: Sergio Benitez <sb@sergio.bz>
Date:   Sun, 21 Oct 2018 23:53:09 -0700

Rename 'codegen_next' to 'codegen'.

Diffstat:
MCargo.toml | 2+-
Acore/codegen/Cargo.toml | 35+++++++++++++++++++++++++++++++++++
Rcore/codegen_next/src/attribute/catch.rs -> core/codegen/src/attribute/catch.rs | 0
Rcore/codegen_next/src/attribute/mod.rs -> core/codegen/src/attribute/mod.rs | 0
Rcore/codegen_next/src/attribute/route.rs -> core/codegen/src/attribute/route.rs | 0
Rcore/codegen_next/src/attribute/segments.rs -> core/codegen/src/attribute/segments.rs | 0
Rcore/codegen_next/src/bang/mod.rs -> core/codegen/src/bang/mod.rs | 0
Rcore/codegen_next/src/bang/uri.rs -> core/codegen/src/bang/uri.rs | 0
Rcore/codegen_next/src/bang/uri_parsing.rs -> core/codegen/src/bang/uri_parsing.rs | 0
Rcore/codegen_next/src/derive/from_form.rs -> core/codegen/src/derive/from_form.rs | 0
Rcore/codegen_next/src/derive/from_form_value.rs -> core/codegen/src/derive/from_form_value.rs | 0
Rcore/codegen_next/src/derive/mod.rs -> core/codegen/src/derive/mod.rs | 0
Rcore/codegen_next/src/derive/responder.rs -> core/codegen/src/derive/responder.rs | 0
Rcore/codegen_next/src/http_codegen.rs -> core/codegen/src/http_codegen.rs | 0
Rcore/codegen_next/src/lib.rs -> core/codegen/src/lib.rs | 0
Rcore/codegen_next/src/proc_macro_ext.rs -> core/codegen/src/proc_macro_ext.rs | 0
Rcore/codegen_next/src/syn_ext.rs -> core/codegen/src/syn_ext.rs | 0
Rcore/codegen_next/tests/compile-test.rs -> core/codegen/tests/compile-test.rs | 0
Rcore/codegen_next/tests/from_form.rs -> core/codegen/tests/from_form.rs | 0
Rcore/codegen_next/tests/from_form_value.rs -> core/codegen/tests/from_form_value.rs | 0
Rcore/codegen_next/tests/other-route.rs -> core/codegen/tests/other-route.rs | 0
Rcore/codegen_next/tests/responder.rs -> core/codegen/tests/responder.rs | 0
Rcore/codegen_next/tests/route-data.rs -> core/codegen/tests/route-data.rs | 0
Rcore/codegen_next/tests/route-format.rs -> core/codegen/tests/route-format.rs | 0
Rcore/codegen_next/tests/route-params.rs -> core/codegen/tests/route-params.rs | 0
Rcore/codegen_next/tests/route-ranking.rs -> core/codegen/tests/route-ranking.rs | 0
Rcore/codegen_next/tests/route.rs -> core/codegen/tests/route.rs | 0
Rcore/codegen_next/tests/typed-uris.rs -> core/codegen/tests/typed-uris.rs | 0
Rcore/codegen_next/tests/ui-fail/catch.rs -> core/codegen/tests/ui-fail/catch.rs | 0
Rcore/codegen_next/tests/ui-fail/catch.stderr -> core/codegen/tests/ui-fail/catch.stderr | 0
Rcore/codegen_next/tests/ui-fail/catch_type_errors.rs -> core/codegen/tests/ui-fail/catch_type_errors.rs | 0
Rcore/codegen_next/tests/ui-fail/catch_type_errors.stderr -> core/codegen/tests/ui-fail/catch_type_errors.stderr | 0
Rcore/codegen_next/tests/ui-fail/catchers.rs -> core/codegen/tests/ui-fail/catchers.rs | 0
Rcore/codegen_next/tests/ui-fail/catchers.stderr -> core/codegen/tests/ui-fail/catchers.stderr | 0
Rcore/codegen_next/tests/ui-fail/from_form.rs -> core/codegen/tests/ui-fail/from_form.rs | 0
Rcore/codegen_next/tests/ui-fail/from_form.stderr -> core/codegen/tests/ui-fail/from_form.stderr | 0
Rcore/codegen_next/tests/ui-fail/from_form_type_errors.rs -> core/codegen/tests/ui-fail/from_form_type_errors.rs | 0
Rcore/codegen_next/tests/ui-fail/from_form_type_errors.stderr -> core/codegen/tests/ui-fail/from_form_type_errors.stderr | 0
Rcore/codegen_next/tests/ui-fail/from_form_value.rs -> core/codegen/tests/ui-fail/from_form_value.rs | 0
Rcore/codegen_next/tests/ui-fail/from_form_value.stderr -> core/codegen/tests/ui-fail/from_form_value.stderr | 0
Rcore/codegen_next/tests/ui-fail/responder-types.rs -> core/codegen/tests/ui-fail/responder-types.rs | 0
Rcore/codegen_next/tests/ui-fail/responder-types.stderr -> core/codegen/tests/ui-fail/responder-types.stderr | 0
Rcore/codegen_next/tests/ui-fail/responder.stderr -> core/codegen/tests/ui-fail/responder.stderr | 0
Rcore/codegen_next/tests/ui-fail/route-attribute-general-syntax.rs -> core/codegen/tests/ui-fail/route-attribute-general-syntax.rs | 0
Rcore/codegen_next/tests/ui-fail/route-attribute-general-syntax.stderr -> core/codegen/tests/ui-fail/route-attribute-general-syntax.stderr | 0
Rcore/codegen_next/tests/ui-fail/route-path-bad-syntax.rs -> core/codegen/tests/ui-fail/route-path-bad-syntax.rs | 0
Rcore/codegen_next/tests/ui-fail/route-path-bad-syntax.stderr -> core/codegen/tests/ui-fail/route-path-bad-syntax.stderr | 0
Rcore/codegen_next/tests/ui-fail/route-type-errors.rs -> core/codegen/tests/ui-fail/route-type-errors.rs | 0
Rcore/codegen_next/tests/ui-fail/route-type-errors.stderr -> core/codegen/tests/ui-fail/route-type-errors.stderr | 0
Rcore/codegen_next/tests/ui-fail/route-warnings.rs -> core/codegen/tests/ui-fail/route-warnings.rs | 0
Rcore/codegen_next/tests/ui-fail/route-warnings.stderr -> core/codegen/tests/ui-fail/route-warnings.stderr | 0
Rcore/codegen_next/tests/ui-fail/routes.rs -> core/codegen/tests/ui-fail/routes.rs | 0
Rcore/codegen_next/tests/ui-fail/routes.stderr -> core/codegen/tests/ui-fail/routes.stderr | 0
Rcore/codegen_next/tests/ui-fail/typed-uri-bad-type.rs -> core/codegen/tests/ui-fail/typed-uri-bad-type.rs | 0
Rcore/codegen_next/tests/ui-fail/typed-uri-bad-type.stderr -> core/codegen/tests/ui-fail/typed-uri-bad-type.stderr | 0
Rcore/codegen_next/tests/ui-fail/typed-uris-bad-params.rs -> core/codegen/tests/ui-fail/typed-uris-bad-params.rs | 0
Rcore/codegen_next/tests/ui-fail/typed-uris-bad-params.stderr -> core/codegen/tests/ui-fail/typed-uris-bad-params.stderr | 0
Rcore/codegen_next/tests/ui-fail/typed-uris-invalid-syntax.rs -> core/codegen/tests/ui-fail/typed-uris-invalid-syntax.rs | 0
Rcore/codegen_next/tests/ui-fail/typed-uris-invalid-syntax.stderr -> core/codegen/tests/ui-fail/typed-uris-invalid-syntax.stderr | 0
Rcore/codegen_next/tests/ui-fail/update-references.sh -> core/codegen/tests/ui-fail/update-references.sh | 0
Dcore/codegen_next/Cargo.toml | 35-----------------------------------
Mcore/lib/Cargo.toml | 2+-
Mcore/lib/src/lib.rs | 4++--
Mscripts/config.sh | 6+++---
Mscripts/mk-docs.sh | 2+-
65 files changed, 43 insertions(+), 43 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml @@ -4,7 +4,7 @@ codegen-units = 4 [workspace] members = [ "core/lib/", - "core/codegen_next/", + "core/codegen/", "core/http/", "contrib/lib", "contrib/codegen", diff --git a/core/codegen/Cargo.toml b/core/codegen/Cargo.toml @@ -0,0 +1,35 @@ +[package] +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/" +homepage = "https://rocket.rs" +repository = "https://github.com/SergioBenitez/Rocket" +readme = "../../README.md" +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 + +[dependencies] +indexmap = "1.0" +quote = "0.6.1" +rocket_http = { version = "0.4.0-dev", path = "../http/" } + +[build-dependencies] +yansi = "0.4" +version_check = "0.1.3" + +[dependencies.derive_utils] +git = "https://github.com/SergioBenitez/derive-utils" +rev = "62f361f" + +[dev-dependencies] +rocket = { version = "0.4.0-dev", path = "../lib" } +compiletest_rs = "0.3.14" diff --git a/core/codegen_next/src/attribute/catch.rs b/core/codegen/src/attribute/catch.rs diff --git a/core/codegen_next/src/attribute/mod.rs b/core/codegen/src/attribute/mod.rs diff --git a/core/codegen_next/src/attribute/route.rs b/core/codegen/src/attribute/route.rs diff --git a/core/codegen_next/src/attribute/segments.rs b/core/codegen/src/attribute/segments.rs diff --git a/core/codegen_next/src/bang/mod.rs b/core/codegen/src/bang/mod.rs diff --git a/core/codegen_next/src/bang/uri.rs b/core/codegen/src/bang/uri.rs diff --git a/core/codegen_next/src/bang/uri_parsing.rs b/core/codegen/src/bang/uri_parsing.rs diff --git a/core/codegen_next/src/derive/from_form.rs b/core/codegen/src/derive/from_form.rs diff --git a/core/codegen_next/src/derive/from_form_value.rs b/core/codegen/src/derive/from_form_value.rs diff --git a/core/codegen_next/src/derive/mod.rs b/core/codegen/src/derive/mod.rs diff --git a/core/codegen_next/src/derive/responder.rs b/core/codegen/src/derive/responder.rs diff --git a/core/codegen_next/src/http_codegen.rs b/core/codegen/src/http_codegen.rs diff --git a/core/codegen_next/src/lib.rs b/core/codegen/src/lib.rs diff --git a/core/codegen_next/src/proc_macro_ext.rs b/core/codegen/src/proc_macro_ext.rs diff --git a/core/codegen_next/src/syn_ext.rs b/core/codegen/src/syn_ext.rs diff --git a/core/codegen_next/tests/compile-test.rs b/core/codegen/tests/compile-test.rs diff --git a/core/codegen_next/tests/from_form.rs b/core/codegen/tests/from_form.rs diff --git a/core/codegen_next/tests/from_form_value.rs b/core/codegen/tests/from_form_value.rs diff --git a/core/codegen_next/tests/other-route.rs b/core/codegen/tests/other-route.rs diff --git a/core/codegen_next/tests/responder.rs b/core/codegen/tests/responder.rs diff --git a/core/codegen_next/tests/route-data.rs b/core/codegen/tests/route-data.rs diff --git a/core/codegen_next/tests/route-format.rs b/core/codegen/tests/route-format.rs diff --git a/core/codegen_next/tests/route-params.rs b/core/codegen/tests/route-params.rs diff --git a/core/codegen_next/tests/route-ranking.rs b/core/codegen/tests/route-ranking.rs diff --git a/core/codegen_next/tests/route.rs b/core/codegen/tests/route.rs diff --git a/core/codegen_next/tests/typed-uris.rs b/core/codegen/tests/typed-uris.rs diff --git a/core/codegen_next/tests/ui-fail/catch.rs b/core/codegen/tests/ui-fail/catch.rs diff --git a/core/codegen_next/tests/ui-fail/catch.stderr b/core/codegen/tests/ui-fail/catch.stderr diff --git a/core/codegen_next/tests/ui-fail/catch_type_errors.rs b/core/codegen/tests/ui-fail/catch_type_errors.rs diff --git a/core/codegen_next/tests/ui-fail/catch_type_errors.stderr b/core/codegen/tests/ui-fail/catch_type_errors.stderr diff --git a/core/codegen_next/tests/ui-fail/catchers.rs b/core/codegen/tests/ui-fail/catchers.rs diff --git a/core/codegen_next/tests/ui-fail/catchers.stderr b/core/codegen/tests/ui-fail/catchers.stderr diff --git a/core/codegen_next/tests/ui-fail/from_form.rs b/core/codegen/tests/ui-fail/from_form.rs diff --git a/core/codegen_next/tests/ui-fail/from_form.stderr b/core/codegen/tests/ui-fail/from_form.stderr diff --git a/core/codegen_next/tests/ui-fail/from_form_type_errors.rs b/core/codegen/tests/ui-fail/from_form_type_errors.rs diff --git a/core/codegen_next/tests/ui-fail/from_form_type_errors.stderr b/core/codegen/tests/ui-fail/from_form_type_errors.stderr diff --git a/core/codegen_next/tests/ui-fail/from_form_value.rs b/core/codegen/tests/ui-fail/from_form_value.rs diff --git a/core/codegen_next/tests/ui-fail/from_form_value.stderr b/core/codegen/tests/ui-fail/from_form_value.stderr diff --git a/core/codegen_next/tests/ui-fail/responder-types.rs b/core/codegen/tests/ui-fail/responder-types.rs diff --git a/core/codegen_next/tests/ui-fail/responder-types.stderr b/core/codegen/tests/ui-fail/responder-types.stderr diff --git a/core/codegen_next/tests/ui-fail/responder.stderr b/core/codegen/tests/ui-fail/responder.stderr diff --git a/core/codegen_next/tests/ui-fail/route-attribute-general-syntax.rs b/core/codegen/tests/ui-fail/route-attribute-general-syntax.rs diff --git a/core/codegen_next/tests/ui-fail/route-attribute-general-syntax.stderr b/core/codegen/tests/ui-fail/route-attribute-general-syntax.stderr diff --git a/core/codegen_next/tests/ui-fail/route-path-bad-syntax.rs b/core/codegen/tests/ui-fail/route-path-bad-syntax.rs diff --git a/core/codegen_next/tests/ui-fail/route-path-bad-syntax.stderr b/core/codegen/tests/ui-fail/route-path-bad-syntax.stderr diff --git a/core/codegen_next/tests/ui-fail/route-type-errors.rs b/core/codegen/tests/ui-fail/route-type-errors.rs diff --git a/core/codegen_next/tests/ui-fail/route-type-errors.stderr b/core/codegen/tests/ui-fail/route-type-errors.stderr diff --git a/core/codegen_next/tests/ui-fail/route-warnings.rs b/core/codegen/tests/ui-fail/route-warnings.rs diff --git a/core/codegen_next/tests/ui-fail/route-warnings.stderr b/core/codegen/tests/ui-fail/route-warnings.stderr diff --git a/core/codegen_next/tests/ui-fail/routes.rs b/core/codegen/tests/ui-fail/routes.rs diff --git a/core/codegen_next/tests/ui-fail/routes.stderr b/core/codegen/tests/ui-fail/routes.stderr diff --git a/core/codegen_next/tests/ui-fail/typed-uri-bad-type.rs b/core/codegen/tests/ui-fail/typed-uri-bad-type.rs diff --git a/core/codegen_next/tests/ui-fail/typed-uri-bad-type.stderr b/core/codegen/tests/ui-fail/typed-uri-bad-type.stderr diff --git a/core/codegen_next/tests/ui-fail/typed-uris-bad-params.rs b/core/codegen/tests/ui-fail/typed-uris-bad-params.rs diff --git a/core/codegen_next/tests/ui-fail/typed-uris-bad-params.stderr b/core/codegen/tests/ui-fail/typed-uris-bad-params.stderr diff --git a/core/codegen_next/tests/ui-fail/typed-uris-invalid-syntax.rs b/core/codegen/tests/ui-fail/typed-uris-invalid-syntax.rs diff --git a/core/codegen_next/tests/ui-fail/typed-uris-invalid-syntax.stderr b/core/codegen/tests/ui-fail/typed-uris-invalid-syntax.stderr diff --git a/core/codegen_next/tests/ui-fail/update-references.sh b/core/codegen/tests/ui-fail/update-references.sh diff --git a/core/codegen_next/Cargo.toml b/core/codegen_next/Cargo.toml @@ -1,35 +0,0 @@ -[package] -name = "rocket_codegen_next" -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/" -homepage = "https://rocket.rs" -repository = "https://github.com/SergioBenitez/Rocket" -readme = "../../README.md" -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 - -[dependencies] -indexmap = "1.0" -quote = "0.6.1" -rocket_http = { version = "0.4.0-dev", path = "../http/" } - -[build-dependencies] -yansi = "0.4" -version_check = "0.1.3" - -[dependencies.derive_utils] -git = "https://github.com/SergioBenitez/derive-utils" -rev = "62f361f" - -[dev-dependencies] -rocket = { version = "0.4.0-dev", path = "../lib" } -compiletest_rs = "0.3.14" diff --git a/core/lib/Cargo.toml b/core/lib/Cargo.toml @@ -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" diff --git a/core/lib/src/lib.rs b/core/lib/src/lib.rs @@ -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; diff --git a/scripts/config.sh b/scripts/config.sh @@ -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}" diff --git a/scripts/mk-docs.sh b/scripts/mk-docs.sh @@ -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.