Skip to content

Commit df46622

Browse files
legendecasnodejs-github-bot
authored andcommitted
deps: update cargo vendor
1 parent f7c4c8a commit df46622

625 files changed

Lines changed: 200421 additions & 21349 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"files":{"Cargo.toml":"64612ed43dee9fb91b5fa663ccdf144052e1a1a5a490fca524c346a8cc29dade","LICENSE":"192ea857d1bff2b87c174de36cbae5c173234726c6b8eceab9790a535d7dbc95","README.md":"cdffd3b4ab1a4efad95de0dcdf0b097fce24fedf04d076e8ab3909ac2e2accb5","src/astronomy.rs":"4c6b5cc40c9d791f6b874794218f45759bb15e022e62218c1c2b88f56a435fd2","src/chinese_based.rs":"5aff15ea2afd3c94a0aaae968ddda74ec6635ef1d5bc875d17f426c918fdd3d4","src/coptic.rs":"4ef26fbc10d7e81057f7a9876951e1a62758a7881c58dab9428dccee2e5fd25f","src/error.rs":"40dcbc44560061cfadd6f1c42ecb0c6eeb6cf8cc8f5f7bfb8a24496b0d46476d","src/ethiopian.rs":"ee85be0a7713e551d94bcf51c2029cb73c509488d3b158c798842654af960f04","src/gregorian.rs":"c2e5a86ef8d9b59d7eda557dc471d431eb248b3543d96d4447b8ea3ba893c938","src/hebrew.rs":"fd50a3ea21eb0eb9db071734df0c30ce891e08ffac9705340f50a983e911ea62","src/hebrew_keviyah.rs":"538b06690510244f6989b7955ce775baf6a2ad31915641e4a195399fe59fcf67","src/helpers.rs":"3173f8cda623121cbaba91fdfe1647342b2b5c01df6a1f9e896c6721f70c8e35","src/islamic.rs":"2ed75d8ca7f356b05160d980179a65edc383865d75a1e503195d2c9e9339ddb0","src/julian.rs":"5b18160dbb5547cfab10444f30dc284c93614407e1d144ec78eedacee8acc674","src/lib.rs":"2c9e26e99be71cc66fa64d419fbddc03859778809e2a68357aefe05e97e98b93","src/persian.rs":"bfd4dc26461999a1eeb172eaca94ff48694ccf6eebed9dc13d2612e685b6e89a","src/rata_die.rs":"e7c4ff9b460b012efa83251f49b0fbaa76244c6e9565bd16d8a552be104a8082"},"package":"3a0b39595c6ee54a8d0900204ba4c401d0ab4eb45adaf07178e8d017541529e7"}
1+
{"files":{"Cargo.toml":"f9f054053fe9cad9f30e0ebe2ab78219d1db32a3600c55aee25a6edbee82a071","LICENSE":"192ea857d1bff2b87c174de36cbae5c173234726c6b8eceab9790a535d7dbc95","README.md":"cdffd3b4ab1a4efad95de0dcdf0b097fce24fedf04d076e8ab3909ac2e2accb5","src/astronomy.rs":"4917e6234028628562acb225758e335ac80b0688e95381a8a288bfa5a2bad29a","src/chinese_based.rs":"aa200c6292a22e52f184d711cbbb7729eada103ef746cca3dd976669cc87bbc1","src/coptic.rs":"db3acc2988d5050aa050d8fd82af104049be49bdc56a6be7eb7d5f351d758de9","src/error.rs":"40dcbc44560061cfadd6f1c42ecb0c6eeb6cf8cc8f5f7bfb8a24496b0d46476d","src/ethiopian.rs":"ee85be0a7713e551d94bcf51c2029cb73c509488d3b158c798842654af960f04","src/gregorian.rs":"3b5edce2a8bb30c99d22124d3aee163c7bbb774f05b8fd0807233f9a23760efa","src/hebrew.rs":"bd84464d45b2b28395e2b8d474049ec196268299087d036dc0462b0e1efc1178","src/hebrew_keviyah.rs":"26d5902829e7b76063c77ca6fb7111a8b16bce3a3d3d93c43cfa367424c9246e","src/helpers.rs":"5251910b007f8ffc27acac7e60a7c66e524ecef9811c9c0e3d711bf453153b25","src/islamic.rs":"a0f7b3d4ce430f97aefff1894957393a7c44227974c0b530111358e83c2bb73e","src/julian.rs":"adfea63519a03e83e496863c4964222ee284053d1d690ee6e2db4186c50024ff","src/lib.rs":"b131a99b20a8a7f15ebcee4ea66cc057c7259dc81ad3f50e3e04318f8b53721e","src/persian.rs":"177efc990dea2c9243e0e7dc39b5fb33f4276b360bae7128352a0a6f8931eb2f","src/rata_die.rs":"ef5a2bbab9b3e0f5d008d304acbfec7d80f190105fffa0eda62169ba9252ee65"},"package":"5abbd6eeda6885048d357edc66748eea6e0268e3dd11f326fff5bd248d779c26"}

deps/crates/vendor/calendrical_calculations/Cargo.toml

Lines changed: 52 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
edition = "2021"
1414
rust-version = "1.82"
1515
name = "calendrical_calculations"
16-
version = "0.2.3"
16+
version = "0.2.4"
1717
authors = ["The ICU4X Project Developers"]
1818
build = false
1919
include = [
@@ -35,10 +35,8 @@ autobenches = false
3535
description = "Calendrical calculations in Rust"
3636
readme = "README.md"
3737
keywords = [
38-
"zerocopy",
39-
"serialization",
40-
"zero-copy",
41-
"serde",
38+
"calendars",
39+
"mathematics",
4240
]
4341
categories = [
4442
"rust-patterns",
@@ -75,3 +73,52 @@ default-features = false
7573
version = "0.4.17"
7674
optional = true
7775
default-features = false
76+
77+
[lints.clippy]
78+
alloc-instead-of-core = "warn"
79+
branches-sharing-code = "warn"
80+
collection_is_never_read = "warn"
81+
crosspointer_transmute = "warn"
82+
dbg_macro = "warn"
83+
debug_assert_with_mut_call = "warn"
84+
doc_markdown = "warn"
85+
exhaustive_enums = "deny"
86+
exhaustive_structs = "deny"
87+
fn_to_numeric_cast_any = "warn"
88+
infinite_loop = "warn"
89+
large_stack_arrays = "warn"
90+
mismatching_type_param_order = "warn"
91+
missing_fields_in_debug = "warn"
92+
missing_transmute_annotations = "warn"
93+
negative_feature_names = "warn"
94+
or-fun-call = "warn"
95+
same_functions_in_if_condition = "warn"
96+
todo = "warn"
97+
transmute_bytes_to_str = "warn"
98+
transmute_int_to_bool = "warn"
99+
transmute_int_to_non_zero = "warn"
100+
transmute_ptr_to_ptr = "warn"
101+
transmute_ptr_to_ref = "warn"
102+
transmute_undefined_repr = "warn"
103+
transmutes_expressible_as_ptr_casts = "warn"
104+
trivially_copy_pass_by_ref = "deny"
105+
unnecessary-wraps = "warn"
106+
useless_transmute = "warn"
107+
wildcard_dependencies = "warn"
108+
109+
[lints.rust]
110+
missing_debug_implementations = "deny"
111+
trivial_numeric_casts = "deny"
112+
unused_lifetimes = "warn"
113+
unused_macro_rules = "warn"
114+
unused_qualifications = "warn"
115+
116+
[lints.rust.unexpected_cfgs]
117+
level = "warn"
118+
priority = 0
119+
check-cfg = [
120+
"cfg(icu4c_enable_renaming)",
121+
"cfg(needs_alloc_error_handler)",
122+
"cfg(icu4x_run_size_tests)",
123+
"cfg(icu4x_unstable_fast_trie_only)",
124+
]

deps/crates/vendor/calendrical_calculations/src/astronomy.rs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ pub struct Location {
4444
pub(crate) longitude: f64,
4545
/// elevation in meters
4646
pub(crate) elevation: f64,
47-
/// UTC timezone offset in fractional days (1 hr = 1.0 / 24.0 day)
47+
/// UTC timezone offset in fractional days (1 hr = 1.0 / 24.0 day),
48+
/// within the range (-12.0 / 24.0) to (14.0 / 24.0)
4849
pub(crate) utc_offset: f64,
4950
}
5051

@@ -77,10 +78,10 @@ pub const WINTER: f64 = 270.0;
7778
pub const NEW_MOON_ZERO: Moment = Moment::new(11.458922815770109);
7879

7980
impl Location {
80-
/// Create a location; latitude is from -90 to 90, and longitude is from -180 to 180;
81-
/// attempting to create a location outside of these bounds will result in a LocationOutOfBoundsError.
82-
#[allow(dead_code)] // TODO: Remove dead_code tag after use
83-
pub(crate) fn try_new(
81+
/// Create a location; latitude is from -90 to 90, longitude is from -180 to 180,
82+
/// and `utc_offset` is from (-12.0 / 24.0) to (14.0 / 24.0);
83+
/// attempting to create a location outside of these bounds will result in a [`LocationOutOfBoundsError`].
84+
pub fn try_new(
8485
latitude: f64,
8586
longitude: f64,
8687
elevation: f64,
@@ -170,7 +171,7 @@ impl Location {
170171

171172
/// Given a UTC-offset in hours and a Moment in standard time,
172173
/// return the Moment in universal time from the time zone with the given offset.
173-
/// The field utc_offset should be within the range of possible offsets given by
174+
/// The field `utc_offset` should be within the range of possible offsets given by
174175
/// the constand fields `MIN_UTC_OFFSET` and `MAX_UTC_OFFSET`.
175176
///
176177
/// Based on functions from _Calendrical Calculations_ by Reingold & Dershowitz.
@@ -181,7 +182,7 @@ impl Location {
181182
}
182183
/// Given a Moment in standard time and UTC-offset in hours,
183184
/// return the Moment in standard time from the time zone with the given offset.
184-
/// The field utc_offset should be within the range of possible offsets given by
185+
/// The field `utc_offset` should be within the range of possible offsets given by
185186
/// the constand fields `MIN_UTC_OFFSET` and `MAX_UTC_OFFSET`.
186187
///
187188
/// Based on functions from _Calendrical Calculations_ by Reingold & Dershowitz.
@@ -1178,7 +1179,7 @@ impl Astronomical {
11781179
}
11791180

11801181
/// Closest fixed date on or before `date` when crescent moon first became visible at `location`.
1181-
/// Lunar phase is the result of calling `lunar_phase(moment, julian_centuries) in an earlier function.
1182+
/// Lunar phase is the result of calling `lunar_phase(moment, julian_centuries)` in an earlier function.
11821183
///
11831184
/// Based on functions from _Calendrical Calculations_ by Reingold & Dershowitz.
11841185
/// Reference lisp code: <https://github.com/EdReingold/calendar-code2/blob/9afc1f3/calendar.l#L6868-L6881>
@@ -1412,7 +1413,7 @@ impl Astronomical {
14121413
}
14131414

14141415
/// Average anomaly of the sun (in degrees) at a given Moment in Julian centuries.
1415-
/// See: https://en.wikipedia.org/wiki/Mean_anomaly
1416+
/// See: <https://en.wikipedia.org/wiki/Mean_anomaly>
14161417
///
14171418
/// Based on functions from _Calendrical Calculations_ by Reingold & Dershowitz,
14181419
/// originally from _Astronomical Algorithms_ by Jean Meeus, 2nd edn., 1998, p. 338.
@@ -1424,7 +1425,7 @@ impl Astronomical {
14241425
}
14251426

14261427
/// Average anomaly of the moon (in degrees) at a given Moment in Julian centuries
1427-
/// See: https://en.wikipedia.org/wiki/Mean_anomaly
1428+
/// See: <https://en.wikipedia.org/wiki/Mean_anomaly>
14281429
///
14291430
/// Based on functions from _Calendrical Calculations_ by Reingold & Dershowitz,
14301431
/// originally from _Astronomical Algorithms_ by Jean Meeus, 2nd edn., 1998, p. 338.
@@ -1846,7 +1847,7 @@ impl Astronomical {
18461847
}
18471848

18481849
/// Aberration at the time given in Julian centuries.
1849-
/// See: https://sceweb.sce.uhcl.edu/helm/WEB-Positional%20Astronomy/Tutorial/Aberration/Aberration.html
1850+
/// See: <https://sceweb.sce.uhcl.edu/helm/WEB-Positional%20Astronomy/Tutorial/Aberration/Aberration.html>
18501851
///
18511852
/// Based on functions from _Calendrical Calculations_ by Reingold & Dershowitz.
18521853
/// Lisp code reference: <https://github.com/EdReingold/calendar-code2/blob/9afc1f3/calendar.l#L4049-L4057>

0 commit comments

Comments
 (0)