Skip to content

chore(deps)(deps): bump sha2 from 0.10.9 to 0.11.0#384

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/cargo/sha2-0.11.0
Open

chore(deps)(deps): bump sha2 from 0.10.9 to 0.11.0#384
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/cargo/sha2-0.11.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 8, 2026

Copy link
Copy Markdown

Bumps sha2 from 0.10.9 to 0.11.0.

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Jun 8, 2026
nochallenge added a commit that referenced this pull request Jun 8, 2026
Add orbit::specific_angular_momentum_from_elements(semi_major_axis, eccentricity),
the conserved specific orbital angular momentum:

  h = sqrt(mu * a * (1 - e^2)) = sqrt(mu * p)   (m^2/s)

the angular momentum per unit mass of the two-body orbit (twice the areal
velocity, Kepler's second law; mu = MU_EARTH). Equivalently sqrt(mu*p)
with p the semi_latus_rectum_from_elements (#384); at the apsides h = r*v,
and for a circle (e=0) it reduces to circular_angular_momentum sqrt(mu*a)
(#348). Guard mirrors semi_latus_rectum_from_elements (a > 0, 0 <= e < 1).

Analytic test specific_angular_momentum_from_elements_is_sqrt_mu_p:
(a) worked a=7e6, e=0.1 -> h = sqrt(mu*6.93e6);
(b) cross-check threading semi_latus_rectum_from_elements (#384):
    h^2 = mu*p across three (a,e);
(c) circular cross-check threading circular_angular_momentum (#348):
    h(a,0) = sqrt(mu*a);
(d) periapsis cross-check threading orbital_speed: h = r_p*v_p;
(e) Err guards for a<=0, e>=1, non-finite.

Free fn in orbit.rs (reached via valenx_astro::orbit::), no lib.rs change.
valenx-astro 221 lib tests (was 220), cargo clippy --all-targets
-D warnings clean.
nochallenge added a commit that referenced this pull request Jun 8, 2026
Add orbit::apoapsis_radius_from_elements(a, e) = a*(1+e) and
periapsis_radius_from_elements(a, e) = a*(1-e), the farthest and closest
orbital radii (m) from the conic elements. Together they are the forward
(a, e) -> apsides direction, completing the apsides<->elements bijection:
eccentricity_from_apsides (#372) and semi_major_axis_from_apsides (#378)
go apsides -> (e, a); these go (a, e) -> apsides. Guard mirrors
semi_latus_rectum_from_elements (a > 0, 0 <= e < 1).

Analytic test apsis_radius_from_elements_completes_the_apsides_bijection:
(a) worked a=7e6, e=0.1 -> r_a=7.7e6, r_p=6.3e6;
(b) double round-trip threading #372 + #378 (non-tautological): the
    computed apsides recover BOTH e and a;
(c) threads semi_latus_rectum_from_elements (#384): the harmonic mean of
    the apsides is the semi-latus rectum p = a(1-e^2);
(d) ordering r_p <= a <= r_a and r_a + r_p = 2a;
(e) circular: e=0 -> both apsides collapse to a;
(f) Err guards for a<=0, e>=1, non-finite (both fns).

Free fns in orbit.rs (reached via valenx_astro::orbit::), no lib.rs change.
valenx-astro 222 lib tests (was 221), cargo clippy --all-targets
-D warnings clean.
Bumps [sha2](https://github.com/RustCrypto/hashes) from 0.10.9 to 0.11.0.
- [Commits](RustCrypto/hashes@sha2-v0.10.9...sha2-v0.11.0)

---
updated-dependencies:
- dependency-name: sha2
  dependency-version: 0.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/cargo/sha2-0.11.0 branch from 70d2ff8 to 328a966 Compare June 15, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants