diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 36f440f01..15c0dbe0b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -117,6 +117,7 @@ jobs: | jq -r '${{ matrix.kind.query }} | map("--target " + .) | join(" ")' \ | xargs -d" " \ cargo hack check \ + -p time \ --no-dev-deps \ --feature-powerset \ --optional-deps \ @@ -141,7 +142,7 @@ jobs: uses: Swatinem/rust-cache@v2 - name: Type-check benchmarks - run: cargo check --benches --all-features + run: cargo check -p time --benches --all-features env: RUSTFLAGS: --cfg bench @@ -185,7 +186,7 @@ jobs: uses: Swatinem/rust-cache@v2 - name: Test - run: cargo test --all-features + run: cargo test -p time --all-features cross-build: name: Cross-build @@ -209,7 +210,7 @@ jobs: # We're testing the linking, so running `cargo check` is insufficient. - name: Cross-build tests - run: cargo build --tests --all-features --target x86_64-pc-windows-gnu + run: cargo build -p time --tests --all-features --target x86_64-pc-windows-gnu fmt: name: Formatting @@ -288,7 +289,7 @@ jobs: uses: Swatinem/rust-cache@v2 - name: Document public API - run: cargo doc --all-features --no-deps -Zrustdoc-map + run: cargo doc -p time --all-features --no-deps -Zrustdoc-map env: RUSTDOCFLAGS: --cfg __time_03_docs @@ -308,7 +309,7 @@ jobs: if: github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.master_branch) - name: Document internal API - run: cargo doc --all-features --no-deps -Zrustdoc-map --document-private-items + run: cargo doc -p time --all-features --no-deps -Zrustdoc-map --document-private-items env: RUSTDOCFLAGS: --cfg __time_03_docs --document-hidden-items @@ -354,7 +355,7 @@ jobs: - name: Generate coverage report run: | cargo llvm-cov clean --workspace - cargo llvm-cov test --no-report --all-features -- --test-threads=1 + cargo llvm-cov test -p time --no-report --all-features -- --test-threads=1 cargo llvm-cov report --lcov > lcov.txt env: RUSTFLAGS: --cfg __ui_tests diff --git a/Cargo.toml b/Cargo.toml index 060878d17..255e1e216 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,82 +1,11 @@ [workspace] -members = ["time-macros"] +default-members = ["time"] +members = [ + "time", + "time-macros", +] resolver = "2" -[package] -name = "time" -version = "0.3.15" -authors = ["Jacob Pratt ", "Time contributors"] -edition = "2021" -rust-version = "1.60.0" -repository = "https://github.com/time-rs/time" -homepage = "https://time-rs.github.io" -keywords = ["date", "time", "calendar", "duration"] -categories = ["date-and-time", "no-std", "parser-implementations", "value-formatting"] -readme = "README.md" -license = "MIT OR Apache-2.0" -description = "Date and time library. Fully interoperable with the standard library. Mostly compatible with #![no_std]." -include = ["src/**/*", "LICENSE-*", "README.md", "!src/tests.rs"] - -[lib] -bench = false - -[package.metadata.docs.rs] -all-features = true -targets = ["x86_64-unknown-linux-gnu"] -rustdoc-args = ["--cfg", "__time_03_docs"] - -[features] -default = ["std"] -alloc = ["serde?/alloc"] -formatting = ["dep:itoa", "std", "time-macros?/formatting"] -large-dates = ["time-macros?/large-dates"] -local-offset = ["std"] -macros = ["dep:time-macros"] -parsing = ["time-macros?/parsing"] -quickcheck = ["dep:quickcheck", "alloc"] -rand = ["dep:rand"] -serde = ["dep:serde", "time-macros?/serde"] -serde-human-readable = ["serde", "formatting", "parsing"] -# Deprecated in favor of `serde-human-readable`. -serde-well-known = ["serde-human-readable"] -std = ["alloc"] -wasm-bindgen = ["dep:js-sys"] - -# If adding an optional dependency, be sure to use the `dep:` prefix above to avoid an implicit -# feature gate. -[dependencies] -itoa = { version = "1.0.1", optional = true } -quickcheck = { version = "1.0.3", default-features = false, optional = true } -rand = { version = "0.8.4", optional = true, default-features = false } -serde = { version = "1.0.126", optional = true, default-features = false } -time-macros = { version = "=0.2.4", path = "time-macros", optional = true } - -[target.'cfg(target_family = "unix")'.dependencies] -libc = "0.2.98" -num_threads = "0.1.2" - -[target.'cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))'.dependencies] -js-sys = { version = "0.3.58", optional = true } - -[dev-dependencies] -rand = { version = "0.8.4", default-features = false } -serde = { version = "1.0.126", default-features = false, features = ["derive"] } -serde_json = "1.0.68" -serde_test = "1.0.126" -quickcheck_macros = "1.0.0" - -[target.'cfg(__ui_tests)'.dev-dependencies] -trybuild = "1.0.68" - -[target.'cfg(bench)'.dev-dependencies] -criterion = { version = "0.4.0", default-features = false } - -# Significant contributions to the benchmarks provided by Emil Lundberg. -[[bench]] -name = "benchmarks" -harness = false -path = "benchmarks/main.rs" - [profile.dev] debug = 0 diff --git a/README.md b/README.md index 18c8ac3ac..34b575340 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ [![codecov](https://codecov.io/gh/time-rs/time/branch/main/graph/badge.svg?token=yt4XSmQNKQ)](https://codecov.io/gh/time-rs/time) Documentation: + - [latest release](https://docs.rs/time) - [main branch](https://time-rs.github.io/api/time) - [book](https://time-rs.github.io/book) diff --git a/tests/integration/compile-fail/invalid_date.rs b/tests/compile-fail/invalid_date.rs similarity index 100% rename from tests/integration/compile-fail/invalid_date.rs rename to tests/compile-fail/invalid_date.rs diff --git a/tests/integration/compile-fail/invalid_date.stderr b/tests/compile-fail/invalid_date.stderr similarity index 100% rename from tests/integration/compile-fail/invalid_date.stderr rename to tests/compile-fail/invalid_date.stderr diff --git a/tests/integration/compile-fail/invalid_datetime.rs b/tests/compile-fail/invalid_datetime.rs similarity index 100% rename from tests/integration/compile-fail/invalid_datetime.rs rename to tests/compile-fail/invalid_datetime.rs diff --git a/tests/integration/compile-fail/invalid_datetime.stderr b/tests/compile-fail/invalid_datetime.stderr similarity index 100% rename from tests/integration/compile-fail/invalid_datetime.stderr rename to tests/compile-fail/invalid_datetime.stderr diff --git a/tests/integration/compile-fail/invalid_format_description.rs b/tests/compile-fail/invalid_format_description.rs similarity index 100% rename from tests/integration/compile-fail/invalid_format_description.rs rename to tests/compile-fail/invalid_format_description.rs diff --git a/tests/integration/compile-fail/invalid_format_description.stderr b/tests/compile-fail/invalid_format_description.stderr similarity index 100% rename from tests/integration/compile-fail/invalid_format_description.stderr rename to tests/compile-fail/invalid_format_description.stderr diff --git a/tests/integration/compile-fail/invalid_offset.rs b/tests/compile-fail/invalid_offset.rs similarity index 100% rename from tests/integration/compile-fail/invalid_offset.rs rename to tests/compile-fail/invalid_offset.rs diff --git a/tests/integration/compile-fail/invalid_offset.stderr b/tests/compile-fail/invalid_offset.stderr similarity index 100% rename from tests/integration/compile-fail/invalid_offset.stderr rename to tests/compile-fail/invalid_offset.stderr diff --git a/tests/integration/compile-fail/invalid_serializer.rs b/tests/compile-fail/invalid_serializer.rs similarity index 100% rename from tests/integration/compile-fail/invalid_serializer.rs rename to tests/compile-fail/invalid_serializer.rs diff --git a/tests/integration/compile-fail/invalid_serializer.stderr b/tests/compile-fail/invalid_serializer.stderr similarity index 100% rename from tests/integration/compile-fail/invalid_serializer.stderr rename to tests/compile-fail/invalid_serializer.stderr diff --git a/tests/integration/compile-fail/invalid_time.rs b/tests/compile-fail/invalid_time.rs similarity index 100% rename from tests/integration/compile-fail/invalid_time.rs rename to tests/compile-fail/invalid_time.rs diff --git a/tests/integration/compile-fail/invalid_time.stderr b/tests/compile-fail/invalid_time.stderr similarity index 100% rename from tests/integration/compile-fail/invalid_time.stderr rename to tests/compile-fail/invalid_time.stderr diff --git a/tests/integration/date.rs b/tests/date.rs similarity index 100% rename from tests/integration/date.rs rename to tests/date.rs diff --git a/tests/integration/derives.rs b/tests/derives.rs similarity index 100% rename from tests/integration/derives.rs rename to tests/derives.rs diff --git a/tests/integration/duration.rs b/tests/duration.rs similarity index 100% rename from tests/integration/duration.rs rename to tests/duration.rs diff --git a/tests/integration/error.rs b/tests/error.rs similarity index 100% rename from tests/integration/error.rs rename to tests/error.rs diff --git a/tests/integration/ext.rs b/tests/ext.rs similarity index 100% rename from tests/integration/ext.rs rename to tests/ext.rs diff --git a/tests/integration/format_description.rs b/tests/format_description.rs similarity index 100% rename from tests/integration/format_description.rs rename to tests/format_description.rs diff --git a/tests/integration/formatting.rs b/tests/formatting.rs similarity index 100% rename from tests/integration/formatting.rs rename to tests/formatting.rs diff --git a/tests/integration/instant.rs b/tests/instant.rs similarity index 100% rename from tests/integration/instant.rs rename to tests/instant.rs diff --git a/tests/integration/macros.rs b/tests/macros.rs similarity index 100% rename from tests/integration/macros.rs rename to tests/macros.rs diff --git a/tests/integration/main.rs b/tests/main.rs similarity index 95% rename from tests/integration/main.rs rename to tests/main.rs index 1e5249a07..ebc7b20c5 100644 --- a/tests/integration/main.rs +++ b/tests/main.rs @@ -106,5 +106,6 @@ mod weekday; #[test] fn compile_fail() { let tests = trybuild::TestCases::new(); - tests.compile_fail("tests/integration/compile-fail/*.rs"); + // Path is relative from `time/Cargo.toml`. + tests.compile_fail("../tests/compile-fail/*.rs"); } diff --git a/tests/integration/meta.rs b/tests/meta.rs similarity index 100% rename from tests/integration/meta.rs rename to tests/meta.rs diff --git a/tests/integration/month.rs b/tests/month.rs similarity index 100% rename from tests/integration/month.rs rename to tests/month.rs diff --git a/tests/integration/offset_date_time.rs b/tests/offset_date_time.rs similarity index 100% rename from tests/integration/offset_date_time.rs rename to tests/offset_date_time.rs diff --git a/tests/integration/parse_format_description.rs b/tests/parse_format_description.rs similarity index 100% rename from tests/integration/parse_format_description.rs rename to tests/parse_format_description.rs diff --git a/tests/integration/parsed.rs b/tests/parsed.rs similarity index 100% rename from tests/integration/parsed.rs rename to tests/parsed.rs diff --git a/tests/integration/parsing.rs b/tests/parsing.rs similarity index 100% rename from tests/integration/parsing.rs rename to tests/parsing.rs diff --git a/tests/integration/primitive_date_time.rs b/tests/primitive_date_time.rs similarity index 100% rename from tests/integration/primitive_date_time.rs rename to tests/primitive_date_time.rs diff --git a/tests/integration/quickcheck.rs b/tests/quickcheck.rs similarity index 100% rename from tests/integration/quickcheck.rs rename to tests/quickcheck.rs diff --git a/tests/integration/rand.rs b/tests/rand.rs similarity index 100% rename from tests/integration/rand.rs rename to tests/rand.rs diff --git a/tests/integration/serde/error_conditions.rs b/tests/serde/error_conditions.rs similarity index 100% rename from tests/integration/serde/error_conditions.rs rename to tests/serde/error_conditions.rs diff --git a/tests/integration/serde/iso8601.rs b/tests/serde/iso8601.rs similarity index 100% rename from tests/integration/serde/iso8601.rs rename to tests/serde/iso8601.rs diff --git a/tests/integration/serde/json.rs b/tests/serde/json.rs similarity index 100% rename from tests/integration/serde/json.rs rename to tests/serde/json.rs diff --git a/tests/integration/serde/macros.rs b/tests/serde/macros.rs similarity index 100% rename from tests/integration/serde/macros.rs rename to tests/serde/macros.rs diff --git a/tests/integration/serde/mod.rs b/tests/serde/mod.rs similarity index 100% rename from tests/integration/serde/mod.rs rename to tests/serde/mod.rs diff --git a/tests/integration/serde/rfc2822.rs b/tests/serde/rfc2822.rs similarity index 100% rename from tests/integration/serde/rfc2822.rs rename to tests/serde/rfc2822.rs diff --git a/tests/integration/serde/rfc3339.rs b/tests/serde/rfc3339.rs similarity index 100% rename from tests/integration/serde/rfc3339.rs rename to tests/serde/rfc3339.rs diff --git a/tests/integration/serde/timestamps.rs b/tests/serde/timestamps.rs similarity index 100% rename from tests/integration/serde/timestamps.rs rename to tests/serde/timestamps.rs diff --git a/tests/integration/serde_helpers.rs b/tests/serde_helpers.rs similarity index 100% rename from tests/integration/serde_helpers.rs rename to tests/serde_helpers.rs diff --git a/tests/integration/time.rs b/tests/time.rs similarity index 100% rename from tests/integration/time.rs rename to tests/time.rs diff --git a/tests/integration/utc_offset.rs b/tests/utc_offset.rs similarity index 100% rename from tests/integration/utc_offset.rs rename to tests/utc_offset.rs diff --git a/tests/integration/util.rs b/tests/util.rs similarity index 100% rename from tests/integration/util.rs rename to tests/util.rs diff --git a/tests/integration/weekday.rs b/tests/weekday.rs similarity index 100% rename from tests/integration/weekday.rs rename to tests/weekday.rs diff --git a/time-macros/Cargo.toml b/time-macros/Cargo.toml index a30911e78..1e8c1254d 100644 --- a/time-macros/Cargo.toml +++ b/time-macros/Cargo.toml @@ -7,9 +7,11 @@ rust-version = "1.60.0" repository = "https://github.com/time-rs/time" keywords = ["date", "time", "calendar", "duration"] categories = ["date-and-time"] -readme = "../README.md" license = "MIT OR Apache-2.0" -description = "Procedural macros for the time crate." +description = """ + Procedural macros for the time crate. + This crate is an implementation detail and should not be relied upon directly. +""" [features] formatting = [] diff --git a/time/Cargo.toml b/time/Cargo.toml new file mode 100644 index 000000000..0b06df464 --- /dev/null +++ b/time/Cargo.toml @@ -0,0 +1,78 @@ +[package] +name = "time" +version = "0.3.15" +authors = ["Jacob Pratt ", "Time contributors"] +edition = "2021" +rust-version = "1.60.0" +repository = "https://github.com/time-rs/time" +homepage = "https://time-rs.github.io" +keywords = ["date", "time", "calendar", "duration"] +categories = ["date-and-time", "no-std", "parser-implementations", "value-formatting"] +readme = "../README.md" +license = "MIT OR Apache-2.0" +description = "Date and time library. Fully interoperable with the standard library. Mostly compatible with #![no_std]." +include = ["src/**/*", "LICENSE-*", "README.md", "!src/tests.rs"] + +[lib] +bench = false + +[package.metadata.docs.rs] +all-features = true +targets = ["x86_64-unknown-linux-gnu"] +rustdoc-args = ["--cfg", "__time_03_docs"] + +[features] +default = ["std"] +alloc = ["serde?/alloc"] +formatting = ["dep:itoa", "std", "time-macros?/formatting"] +large-dates = ["time-macros?/large-dates"] +local-offset = ["std"] +macros = ["dep:time-macros"] +parsing = ["time-macros?/parsing"] +quickcheck = ["dep:quickcheck", "alloc"] +rand = ["dep:rand"] +serde = ["dep:serde", "time-macros?/serde"] +serde-human-readable = ["serde", "formatting", "parsing"] +# Deprecated in favor of `serde-human-readable`. +serde-well-known = ["serde-human-readable"] +std = ["alloc"] +wasm-bindgen = ["dep:js-sys"] + +# If adding an optional dependency, be sure to use the `dep:` prefix above to avoid an implicit +# feature gate. +[dependencies] +itoa = { version = "1.0.1", optional = true } +quickcheck = { version = "1.0.3", default-features = false, optional = true } +rand = { version = "0.8.4", optional = true, default-features = false } +serde = { version = "1.0.126", optional = true, default-features = false } +time-macros = { version = "=0.2.4", path = "../time-macros", optional = true } + +[target.'cfg(target_family = "unix")'.dependencies] +libc = "0.2.98" +num_threads = "0.1.2" + +[target.'cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))'.dependencies] +js-sys = { version = "0.3.58", optional = true } + +[dev-dependencies] +rand = { version = "0.8.4", default-features = false } +serde = { version = "1.0.126", default-features = false, features = ["derive"] } +serde_json = "1.0.68" +serde_test = "1.0.126" +quickcheck_macros = "1.0.0" + +[target.'cfg(__ui_tests)'.dev-dependencies] +trybuild = "1.0.68" + +[target.'cfg(bench)'.dev-dependencies] +criterion = { version = "0.4.0", default-features = false } + +# Significant contributions to the benchmarks provided by Emil Lundberg. +[[bench]] +name = "benchmarks" +harness = false +path = "../benchmarks/main.rs" + +[[test]] +name = "tests" +path = "../tests/main.rs" diff --git a/time/LICENSE-Apache b/time/LICENSE-Apache new file mode 120000 index 000000000..0cd69a3e2 --- /dev/null +++ b/time/LICENSE-Apache @@ -0,0 +1 @@ +../LICENSE-Apache \ No newline at end of file diff --git a/time/LICENSE-MIT b/time/LICENSE-MIT new file mode 120000 index 000000000..76219eb72 --- /dev/null +++ b/time/LICENSE-MIT @@ -0,0 +1 @@ +../LICENSE-MIT \ No newline at end of file diff --git a/src/date.rs b/time/src/date.rs similarity index 100% rename from src/date.rs rename to time/src/date.rs diff --git a/src/duration.rs b/time/src/duration.rs similarity index 100% rename from src/duration.rs rename to time/src/duration.rs diff --git a/src/error/component_range.rs b/time/src/error/component_range.rs similarity index 100% rename from src/error/component_range.rs rename to time/src/error/component_range.rs diff --git a/src/error/conversion_range.rs b/time/src/error/conversion_range.rs similarity index 100% rename from src/error/conversion_range.rs rename to time/src/error/conversion_range.rs diff --git a/src/error/different_variant.rs b/time/src/error/different_variant.rs similarity index 100% rename from src/error/different_variant.rs rename to time/src/error/different_variant.rs diff --git a/src/error/format.rs b/time/src/error/format.rs similarity index 100% rename from src/error/format.rs rename to time/src/error/format.rs diff --git a/src/error/indeterminate_offset.rs b/time/src/error/indeterminate_offset.rs similarity index 100% rename from src/error/indeterminate_offset.rs rename to time/src/error/indeterminate_offset.rs diff --git a/src/error/invalid_format_description.rs b/time/src/error/invalid_format_description.rs similarity index 100% rename from src/error/invalid_format_description.rs rename to time/src/error/invalid_format_description.rs diff --git a/src/error/invalid_variant.rs b/time/src/error/invalid_variant.rs similarity index 100% rename from src/error/invalid_variant.rs rename to time/src/error/invalid_variant.rs diff --git a/src/error/mod.rs b/time/src/error/mod.rs similarity index 100% rename from src/error/mod.rs rename to time/src/error/mod.rs diff --git a/src/error/parse.rs b/time/src/error/parse.rs similarity index 100% rename from src/error/parse.rs rename to time/src/error/parse.rs diff --git a/src/error/parse_from_description.rs b/time/src/error/parse_from_description.rs similarity index 100% rename from src/error/parse_from_description.rs rename to time/src/error/parse_from_description.rs diff --git a/src/error/try_from_parsed.rs b/time/src/error/try_from_parsed.rs similarity index 100% rename from src/error/try_from_parsed.rs rename to time/src/error/try_from_parsed.rs diff --git a/src/ext.rs b/time/src/ext.rs similarity index 100% rename from src/ext.rs rename to time/src/ext.rs diff --git a/src/format_description/component.rs b/time/src/format_description/component.rs similarity index 100% rename from src/format_description/component.rs rename to time/src/format_description/component.rs diff --git a/src/format_description/mod.rs b/time/src/format_description/mod.rs similarity index 100% rename from src/format_description/mod.rs rename to time/src/format_description/mod.rs diff --git a/src/format_description/modifier.rs b/time/src/format_description/modifier.rs similarity index 100% rename from src/format_description/modifier.rs rename to time/src/format_description/modifier.rs diff --git a/src/format_description/parse.rs b/time/src/format_description/parse.rs similarity index 100% rename from src/format_description/parse.rs rename to time/src/format_description/parse.rs diff --git a/src/format_description/well_known/iso8601.rs b/time/src/format_description/well_known/iso8601.rs similarity index 100% rename from src/format_description/well_known/iso8601.rs rename to time/src/format_description/well_known/iso8601.rs diff --git a/src/format_description/well_known/iso8601/adt_hack.rs b/time/src/format_description/well_known/iso8601/adt_hack.rs similarity index 100% rename from src/format_description/well_known/iso8601/adt_hack.rs rename to time/src/format_description/well_known/iso8601/adt_hack.rs diff --git a/src/format_description/well_known/rfc2822.rs b/time/src/format_description/well_known/rfc2822.rs similarity index 100% rename from src/format_description/well_known/rfc2822.rs rename to time/src/format_description/well_known/rfc2822.rs diff --git a/src/format_description/well_known/rfc3339.rs b/time/src/format_description/well_known/rfc3339.rs similarity index 100% rename from src/format_description/well_known/rfc3339.rs rename to time/src/format_description/well_known/rfc3339.rs diff --git a/src/formatting/formattable.rs b/time/src/formatting/formattable.rs similarity index 100% rename from src/formatting/formattable.rs rename to time/src/formatting/formattable.rs diff --git a/src/formatting/iso8601.rs b/time/src/formatting/iso8601.rs similarity index 100% rename from src/formatting/iso8601.rs rename to time/src/formatting/iso8601.rs diff --git a/src/formatting/mod.rs b/time/src/formatting/mod.rs similarity index 100% rename from src/formatting/mod.rs rename to time/src/formatting/mod.rs diff --git a/src/instant.rs b/time/src/instant.rs similarity index 100% rename from src/instant.rs rename to time/src/instant.rs diff --git a/src/lib.rs b/time/src/lib.rs similarity index 100% rename from src/lib.rs rename to time/src/lib.rs diff --git a/src/macros.rs b/time/src/macros.rs similarity index 100% rename from src/macros.rs rename to time/src/macros.rs diff --git a/src/month.rs b/time/src/month.rs similarity index 100% rename from src/month.rs rename to time/src/month.rs diff --git a/src/offset_date_time.rs b/time/src/offset_date_time.rs similarity index 100% rename from src/offset_date_time.rs rename to time/src/offset_date_time.rs diff --git a/src/parsing/combinator/mod.rs b/time/src/parsing/combinator/mod.rs similarity index 100% rename from src/parsing/combinator/mod.rs rename to time/src/parsing/combinator/mod.rs diff --git a/src/parsing/combinator/rfc/iso8601.rs b/time/src/parsing/combinator/rfc/iso8601.rs similarity index 100% rename from src/parsing/combinator/rfc/iso8601.rs rename to time/src/parsing/combinator/rfc/iso8601.rs diff --git a/src/parsing/combinator/rfc/mod.rs b/time/src/parsing/combinator/rfc/mod.rs similarity index 100% rename from src/parsing/combinator/rfc/mod.rs rename to time/src/parsing/combinator/rfc/mod.rs diff --git a/src/parsing/combinator/rfc/rfc2234.rs b/time/src/parsing/combinator/rfc/rfc2234.rs similarity index 100% rename from src/parsing/combinator/rfc/rfc2234.rs rename to time/src/parsing/combinator/rfc/rfc2234.rs diff --git a/src/parsing/combinator/rfc/rfc2822.rs b/time/src/parsing/combinator/rfc/rfc2822.rs similarity index 100% rename from src/parsing/combinator/rfc/rfc2822.rs rename to time/src/parsing/combinator/rfc/rfc2822.rs diff --git a/src/parsing/component.rs b/time/src/parsing/component.rs similarity index 100% rename from src/parsing/component.rs rename to time/src/parsing/component.rs diff --git a/src/parsing/iso8601.rs b/time/src/parsing/iso8601.rs similarity index 100% rename from src/parsing/iso8601.rs rename to time/src/parsing/iso8601.rs diff --git a/src/parsing/mod.rs b/time/src/parsing/mod.rs similarity index 100% rename from src/parsing/mod.rs rename to time/src/parsing/mod.rs diff --git a/src/parsing/parsable.rs b/time/src/parsing/parsable.rs similarity index 100% rename from src/parsing/parsable.rs rename to time/src/parsing/parsable.rs diff --git a/src/parsing/parsed.rs b/time/src/parsing/parsed.rs similarity index 100% rename from src/parsing/parsed.rs rename to time/src/parsing/parsed.rs diff --git a/src/parsing/shim.rs b/time/src/parsing/shim.rs similarity index 100% rename from src/parsing/shim.rs rename to time/src/parsing/shim.rs diff --git a/src/primitive_date_time.rs b/time/src/primitive_date_time.rs similarity index 100% rename from src/primitive_date_time.rs rename to time/src/primitive_date_time.rs diff --git a/src/quickcheck.rs b/time/src/quickcheck.rs similarity index 100% rename from src/quickcheck.rs rename to time/src/quickcheck.rs diff --git a/src/rand.rs b/time/src/rand.rs similarity index 100% rename from src/rand.rs rename to time/src/rand.rs diff --git a/src/serde/iso8601.rs b/time/src/serde/iso8601.rs similarity index 100% rename from src/serde/iso8601.rs rename to time/src/serde/iso8601.rs diff --git a/src/serde/mod.rs b/time/src/serde/mod.rs similarity index 100% rename from src/serde/mod.rs rename to time/src/serde/mod.rs diff --git a/src/serde/rfc2822.rs b/time/src/serde/rfc2822.rs similarity index 100% rename from src/serde/rfc2822.rs rename to time/src/serde/rfc2822.rs diff --git a/src/serde/rfc3339.rs b/time/src/serde/rfc3339.rs similarity index 100% rename from src/serde/rfc3339.rs rename to time/src/serde/rfc3339.rs diff --git a/src/serde/timestamp.rs b/time/src/serde/timestamp.rs similarity index 100% rename from src/serde/timestamp.rs rename to time/src/serde/timestamp.rs diff --git a/src/serde/visitor.rs b/time/src/serde/visitor.rs similarity index 100% rename from src/serde/visitor.rs rename to time/src/serde/visitor.rs diff --git a/src/sys/local_offset_at/imp.rs b/time/src/sys/local_offset_at/imp.rs similarity index 100% rename from src/sys/local_offset_at/imp.rs rename to time/src/sys/local_offset_at/imp.rs diff --git a/src/sys/local_offset_at/mod.rs b/time/src/sys/local_offset_at/mod.rs similarity index 100% rename from src/sys/local_offset_at/mod.rs rename to time/src/sys/local_offset_at/mod.rs diff --git a/src/sys/local_offset_at/unix.rs b/time/src/sys/local_offset_at/unix.rs similarity index 100% rename from src/sys/local_offset_at/unix.rs rename to time/src/sys/local_offset_at/unix.rs diff --git a/src/sys/local_offset_at/wasm_js.rs b/time/src/sys/local_offset_at/wasm_js.rs similarity index 100% rename from src/sys/local_offset_at/wasm_js.rs rename to time/src/sys/local_offset_at/wasm_js.rs diff --git a/src/sys/local_offset_at/windows.rs b/time/src/sys/local_offset_at/windows.rs similarity index 100% rename from src/sys/local_offset_at/windows.rs rename to time/src/sys/local_offset_at/windows.rs diff --git a/src/sys/mod.rs b/time/src/sys/mod.rs similarity index 100% rename from src/sys/mod.rs rename to time/src/sys/mod.rs diff --git a/src/tests.rs b/time/src/tests.rs similarity index 100% rename from src/tests.rs rename to time/src/tests.rs diff --git a/src/time.rs b/time/src/time.rs similarity index 100% rename from src/time.rs rename to time/src/time.rs diff --git a/src/utc_offset.rs b/time/src/utc_offset.rs similarity index 100% rename from src/utc_offset.rs rename to time/src/utc_offset.rs diff --git a/src/util.rs b/time/src/util.rs similarity index 100% rename from src/util.rs rename to time/src/util.rs diff --git a/src/weekday.rs b/time/src/weekday.rs similarity index 100% rename from src/weekday.rs rename to time/src/weekday.rs