Home
last modified time | relevance | path

Searched +full:rkyv +full:- +full:validation (Results 1 – 21 of 21) sorted by relevance

/external/rust/crates/chrono/
DCargo.toml.orig9 categories = ["date-and-time"]
11 license = "MIT OR Apache-2.0"
14 rust-version = "1.61.0"
24 winapi = ["windows-targets"]
26 clock = ["winapi", "iana-time-zone", "android-tzdata", "now"]
29 wasmbind = ["wasm-bindgen", "js-sys"]
30 unstable-locales = ["pure-rust-locales"]
31 # Note that rkyv-16, rkyv-32, and rkyv-64 are mutually exclusive.
32 rkyv = ["dep:rkyv", "rkyv/size_32"]
33 rkyv-16 = ["dep:rkyv", "rkyv?/size_16"]
[all …]
DCargo.toml14 rust-version = "1.61.0"
27 categories = ["date-and-time"]
28 license = "MIT OR Apache-2.0"
34 "rkyv",
36 "unstable-locales",
38 rustdoc-args = [
39 "--cfg",
54 [dependencies.num-traits]
56 default-features = false
58 [dependencies.pure-rust-locales]
[all …]
/external/rust/crates/chrono/src/naive/
Disoweek.rs10 #[cfg(any(feature = "rkyv", feature = "rkyv-16", feature = "rkyv-32", feature = "rkyv-64"))]
11 use rkyv::{Archive, Deserialize, Serialize};
16 /// constitutes the ISO 8601 [week date](./struct.NaiveDate.html#week-date).
21 any(feature = "rkyv", feature = "rkyv-16", feature = "rkyv-32", feature = "rkyv-64"),
26 #[cfg_attr(feature = "rkyv-validation", archive(check_bytes))]
40 pub(super) fn iso_week_from_yof(year: i32, of: Of) -> IsoWeek { in iso_week_from_yof()
44 let prevlastweek = YearFlags::from_year(year - 1).nisoweeks(); in iso_week_from_yof()
45 (year - 1, prevlastweek) in iso_week_from_yof()
81 pub const fn year(&self) -> i32 { in year()
98 pub const fn week(&self) -> u32 { in week()
[all …]
Ddate.rs12 #[cfg(any(feature = "rkyv", feature = "rkyv-16", feature = "rkyv-32", feature = "rkyv-64"))]
13 use rkyv::{Archive, Deserialize, Serialize};
16 #[cfg(all(feature = "unstable-locales", feature = "alloc"))]
63 pub const fn first_day(&self) -> NaiveDate { in first_day()
69 let days = start - ref_day - if start > ref_day { 7 } else { 0 }; in first_day()
91 pub const fn last_day(&self) -> NaiveDate { in last_day()
97 let days = end - ref_day + if end < ref_day { 7 } else { 0 }; in last_day()
121 pub const fn days(&self) -> RangeInclusive<NaiveDate> { in days()
137 pub const fn new(num: u64) -> Self { in new()
156 /// on the same calendar date---April 23, 1616---but in the different calendar.
[all …]
/external/rust/crates/chrono/src/offset/
Dfixed.rs9 #[cfg(any(feature = "rkyv", feature = "rkyv-16", feature = "rkyv-32", feature = "rkyv-64"))]
10 use rkyv::{Archive, Deserialize, Serialize};
16 /// The time zone with fixed offset, from UTC-23:59:59 to UTC+23:59:59.
24 any(feature = "rkyv", feature = "rkyv-16", feature = "rkyv-32", feature = "rkyv-64"),
29 #[cfg_attr(feature = "rkyv-validation", archive(check_bytes))]
38 /// Panics on the out-of-bound `secs`.
41 pub fn east(secs: i32) -> FixedOffset { in east()
48 /// Returns `None` on the out-of-bound `secs`.
60 /// assert_eq!(&datetime.to_rfc3339(), "2016-11-08T00:00:00+05:00")
63 pub const fn east_opt(secs: i32) -> Option<FixedOffset> { in east_opt()
[all …]
Dutc.rs17 #[cfg(any(feature = "rkyv", feature = "rkyv-16", feature = "rkyv-32", feature = "rkyv-64"))]
18 use rkyv::{Archive, Deserialize, Serialize};
45 any(feature = "rkyv", feature = "rkyv-16", feature = "rkyv-32", feature = "rkyv-64"),
50 #[cfg_attr(feature = "rkyv-validation", archive(check_bytes))]
63 pub fn today() -> Date<Utc> { in today()
95 pub fn now() -> DateTime<Utc> { in now()
110 pub fn now() -> DateTime<Utc> { in now()
119 fn from_offset(_state: &Utc) -> Utc { in from_offset()
123 fn offset_from_local_date(&self, _local: &NaiveDate) -> LocalResult<Utc> { in offset_from_local_date()
126 fn offset_from_local_datetime(&self, _local: &NaiveDateTime) -> LocalResult<Utc> { in offset_from_local_datetime()
[all …]
/external/rust/crates/chrono/.github/workflows/
Dtest.yml4 # It's really `--all-features`, but not adding the mutually exclusive features from rkyv
5 …ALL_NON_EXCLUSIVE_FEATURES: --features "default unstable-locales rkyv-32 rkyv-validation rustc-ser…
16 os: [ubuntu-latest, macos-latest, windows-latest]
17 tz: ["ACST-9:30", "EST4", "UTC0", "Asia/Katmandu"]
18 runs-on: ${{ matrix.os }}
20 - uses: actions/checkout@v4
21 - uses: dtolnay/rust-toolchain@stable
22 - uses: Swatinem/rust-cache@v2
23 - run: cargo test ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --color=always -- --color=always
31 os: [ubuntu-latest]
[all …]
Dcodecov.yml4 # It's really `--all-features`, but not adding the mutually exclusive features from rkyv
5 …ALL_NON_EXCLUSIVE_FEATURES: --features "default unstable-locales rkyv-64 rkyv-validation rustc-ser…
12 # Run code coverage using cargo-llvm-cov then upload to codecov.io
14 name: llvm-cov
15 runs-on: ubuntu-latest
19 - uses: actions/checkout@v4
20 # nightly is required for --doctests, see cargo-llvm-cov#2
21 - name: Install Rust (nightly)
23 - name: Install cargo-llvm-cov
24 uses: taiki-e/install-action@cargo-llvm-cov
[all …]
Dlint.yml4 # It's really `--all-features`, but not adding the mutually exclusive features from rkyv
5 …ALL_NON_EXCLUSIVE_FEATURES: --features "default unstable-locales rkyv-64 rkyv-validation rustc-ser…
14 runs-on: ubuntu-latest
17 - uses: actions/checkout@v4
18 - uses: dtolnay/rust-toolchain@stable
20 targets: x86_64-unknown-linux-gnu, x86_64-pc-windows-msvc
21 - uses: Swatinem/rust-cache@v2
22 - run: cargo fmt --check -- --color=always
23 - run: cargo fmt --check --manifest-path fuzz/Cargo.toml
24 - run: cargo fmt --check --manifest-path bench/Cargo.toml
[all …]
/external/rust/crates/glam/
DREADME.md3 [![Build Status]][github-ci] [![Coverage Status]][coveralls.io]
44 types use 128-bit wide SIMD vector types for storage on `x86`, `x86_64` and
54 [mathbench]: https://github.com/bitshifter/mathbench-rs
61 * To enable `SSE2` on `x86` targets add `-C target-feature=+sse2` to
63 * To enable `simd128` on `wasm32` targets add `-C target-feature=+simd128` to
65 * Experimental [portable simd] support can be enabled with the `core-simd`
71 [portable simd]: https://doc.rust-lang.org/core/simd/index.html
75 `no_std` support can be enabled by compiling with `--no-default-features` to
76 disable `std` support and `--features libm` for math functions that are only
81 glam = { version = "0.25", default-features = false, features = ["libm"] }
[all …]
/external/rust/crates/chrono/src/
Dweekday.rs3 #[cfg(any(feature = "rkyv", feature = "rkyv-16", feature = "rkyv-32", feature = "rkyv-64"))]
4 use rkyv::{Archive, Deserialize, Serialize};
33 #[cfg_attr(feature = "rustc-serialize", derive(RustcEncodable, RustcDecodable))]
35 any(feature = "rkyv", feature = "rkyv-16", feature = "rkyv-32", feature = "rkyv-64"),
40 #[cfg_attr(feature = "rkyv-validation", archive(check_bytes))]
63 /// ----------- | ----- | ----- | ----- | ----- | ----- | ----- | -----
67 pub const fn succ(&self) -> Weekday { in succ()
82 /// ----------- | ----- | ----- | ----- | ----- | ----- | ----- | -----
86 pub const fn pred(&self) -> Weekday { in pred()
98 /// Returns a day-of-week number starting from Monday = 1. (ISO 8601 weekday number)
[all …]
Dmonth.rs3 #[cfg(any(feature = "rkyv", feature = "rkyv-16", feature = "rkyv-32", feature = "rkyv-64"))]
4 use rkyv::{Archive, Deserialize, Serialize};
17 /// // `2019-10-28T09:10:11Z`
28 /// Allows mapping from and to month, from 1-January to 12-December.
30 // Actual implementation is zero-indexed, API intended as 1-indexed for more intuitive behavior.
32 #[cfg_attr(feature = "rustc-serialize", derive(RustcEncodable, RustcDecodable))]
34 any(feature = "rkyv", feature = "rkyv-16", feature = "rkyv-32", feature = "rkyv-64"),
39 #[cfg_attr(feature = "rkyv-validation", archive(check_bytes))]
72 /// ----------- | --------- | ---------- | --- | ---------
76 pub const fn succ(&self) -> Month { in succ()
[all …]
Dtime_delta.rs1 // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
21 #[cfg(any(feature = "rkyv", feature = "rkyv-16", feature = "rkyv-32", feature = "rkyv-64"))]
22 use rkyv::{Archive, Deserialize, Serialize};
38 /// The number of (non-leap) seconds in days.
40 /// The number of (non-leap) seconds in a week.
[all …]
/external/rust/crates/chrono/src/offset/local/
Dmod.rs9 #[cfg(any(feature = "rkyv", feature = "rkyv-16", feature = "rkyv-32", feature = "rkyv-64"))]
10 use rkyv::{Archive, Deserialize, Serialize};
43 pub(super) fn offset_from_utc_datetime(_utc_time: &NaiveDateTime) -> LocalResult<FixedOffset> { in offset_from_utc_datetime()
49 ) -> LocalResult<FixedOffset> { in offset_from_local_datetime()
62 pub(super) fn offset_from_utc_datetime(utc: &NaiveDateTime) -> LocalResult<FixedOffset> { in offset_from_utc_datetime()
67 pub(super) fn offset_from_local_datetime(local: &NaiveDateTime) -> LocalResult<FixedOffset> { in offset_from_local_datetime()
73 let shift_cycles = (year - 100).div_euclid(400); in offset_from_local_datetime()
74 year -= shift_cycles * 400; in offset_from_local_datetime()
111 any(feature = "rkyv", feature = "rkyv-16", feature = "rkyv-32", feature = "rkyv-64"),
116 #[cfg_attr(feature = "rkyv-validation", archive(check_bytes))]
[all …]
/external/rust/crates/chrono/src/naive/time/
Dtests.rs98 check!(hmsm(3, 5, 59, 1_300), TimeDelta::milliseconds(-1800), hmsm(3, 5, 58, 500)); in test_time_add()
99 check!(hmsm(3, 5, 59, 1_300), TimeDelta::milliseconds(-800), hmsm(3, 5, 59, 500)); in test_time_add()
100 check!(hmsm(3, 5, 59, 1_300), TimeDelta::milliseconds(-100), hmsm(3, 5, 59, 1_200)); in test_time_add()
105 check!(hmsm(3, 5, 59, 900), TimeDelta::seconds(-86399), hmsm(3, 6, 0, 900)); in test_time_add()
108 check!(hmsm(3, 5, 59, 1_300), TimeDelta::days(-1), hmsm(3, 6, 0, 300)); in test_time_add()
111 check!(hmsm(0, 0, 0, 0), TimeDelta::milliseconds(-990), hmsm(23, 59, 59, 10)); in test_time_add()
112 check!(hmsm(0, 0, 0, 0), TimeDelta::milliseconds(-9990), hmsm(23, 59, 50, 10)); in test_time_add()
128 hmsm(3, 4, 5, 678).overflowing_add_signed(TimeDelta::hours(-7)), in test_time_overflowing_add()
129 (hmsm(20, 4, 5, 678), -86_400) in test_time_overflowing_add()
132 // overflowing_add_signed with leap seconds may be counter-intuitive in test_time_overflowing_add()
[all …]
Dmod.rs12 #[cfg(any(feature = "rkyv", feature = "rkyv-16", feature = "rkyv-32", feature = "rkyv-64"))]
13 use rkyv::{Archive, Deserialize, Serialize};
24 #[cfg(feature = "rustc-serialize")]
43 /// made that the UTC should be kept within 0.9 seconds of the observed Earth-bound time.
55 /// Internet-based clocks (via NTP) do account for known leap seconds,
72 /// This makes possible to treat a leap second as the prior non-leap second
73 /// if you don't care about sub-second accuracy.
90 /// 2015-07-01 01:23:60 would be a proper leap second if UTC+01:24 had existed.
91 /// Practically speaking, though, by the time of the first leap second on 1972-06-30,
92 /// every time zone offset around the world has standardized to the 5-minute alignment.
[all …]
/external/rust/crates/chrono/src/datetime/
Dmod.rs17 #[cfg(all(feature = "unstable-locales", feature = "alloc"))]
34 #[cfg(any(feature = "rkyv", feature = "rkyv-16", feature = "rkyv-32", feature = "rkyv-64"))]
35 use rkyv::{Archive, Deserialize, Serialize};
37 #[cfg(feature = "rustc-serialize")]
40 /// documented at re-export site
50 /// the general-purpose constructors are all via the methods on the
54 any(feature = "rkyv", feature = "rkyv-16", feature = "rkyv-32", feature = "rkyv-64"),
58 #[cfg_attr(feature = "rkyv-validation", archive(check_bytes))]
74 /// This is a low-level method, intended for use cases such as deserializing a `DateTime` or
99 ) -> DateTime<Tz> { in from_naive_utc_and_offset()
[all …]
/external/rust/crates/glam/src/
Dlib.rs35 `glam` is built with SIMD in mind. Many `f32` types use 128-bit SIMD vector types for storage
58 |:-----------|------------:|------------:|-----------:|--------:|
65 [**mathbench**](https://github.com/bitshifter/mathbench-rs) benchmarks.
78 // Convert from `Vec4` to `Vec3A`, this is a no-op if SIMD is supported.
99 |--------------------|-------------|------------|------------|
109 |--------------------|-------------|-------------|
117 Benchmarks were taken on an Intel Core i7-4710HQ.
132 Matrices are stored in memory in column-major order.
150 [`Deref`]: https://doc.rust-lang.org/std/ops/trait.Deref.html
151 [`DerefMut`]: https://doc.rust-lang.org/std/ops/trait.DerefMut.html
[all …]
/external/rust/crates/chrono/src/naive/datetime/
Dtests.rs7 (1662921288000, "2022-09-11 18:34:48.000000000"), in test_datetime_from_timestamp_millis()
8 (1662921288123, "2022-09-11 18:34:48.123000000"), in test_datetime_from_timestamp_millis()
9 (1662921287890, "2022-09-11 18:34:47.890000000"), in test_datetime_from_timestamp_millis()
10 (-2208936075000, "1900-01-01 14:38:45.000000000"), in test_datetime_from_timestamp_millis()
11 (0, "1970-01-01 00:00:00.000000000"), in test_datetime_from_timestamp_millis()
12 (119731017000, "1973-10-17 18:36:57.000000000"), in test_datetime_from_timestamp_millis()
13 (1234567890000, "2009-02-13 23:31:30.000000000"), in test_datetime_from_timestamp_millis()
14 (2034061609000, "2034-06-16 09:06:49.000000000"), in test_datetime_from_timestamp_millis()
33 let secs_test = [0, 1, 2, 1000, 1234, 12345678, -1, -2, -1000, -12345678]; in test_datetime_from_timestamp_millis()
45 (1662921288000000, "2022-09-11 18:34:48.000000000"), in test_datetime_from_timestamp_micros()
[all …]
Dmod.rs13 #[cfg(any(feature = "rkyv", feature = "rkyv-16", feature = "rkyv-32", feature = "rkyv-64"))]
14 use rkyv::{Archive, Deserialize, Serialize};
27 #[cfg(feature = "rustc-serialize")]
65 /// You can use typical [date-like](Datelike) and [time-like](Timelike) methods,
78 any(feature = "rkyv", feature = "rkyv-16", feature = "rkyv-32", feature = "rkyv-64"),
83 #[cfg_attr(feature = "rkyv-validation", archive(check_bytes))]
108 pub const fn new(date: NaiveDate, time: NaiveTime) -> NaiveDateTime { in new()
113 /// from the number of non-leap seconds
115 /// and the number of nanoseconds since the last whole non-leap second.
117 /// For a non-naive version of this function see [`TimeZone::timestamp`].
[all …]
/external/bazelbuild-rules_rust/crate_universe/test_data/metadata/crate_renamed_optional_deps_disabled/
Dmetadata.json9 "date-and-time"
21 "source": "registry+https://github.com/rust-lang/crates.io-index",
26 "description": "Parser for the Android-specific tzdata file",
31 "id": "android-tzdata 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
37 "license": "MIT OR Apache-2.0",
40 …"manifest_path": "{CARGO_HOME}/registry/src/index.crates.io-6f17d22bba15001f/android-tzdata-0.1.1/…
42 "name": "android-tzdata",
45 "repository": "https://github.com/RumovZ/android-tzdata",
47 "source": "registry+https://github.com/rust-lang/crates.io-index",
59 "name": "android-tzdata",
[all …]