Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to the JavaScript workspace are documented here.

## [Unreleased]

### Changed
- Documented the shared `rework-ffi` development flow for `qtty-js`,
`tempoch-js`, and `siderust-js`, including the canonical-workspace path
patches used for local integration and the branch-pinned git-patch workflow
to use once those Rust branches are committed.

## [0.1.0] - 2026-03-11

### Added
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,20 @@ wasm-pack build --target web --out-dir pkg --release --scope siderust
npm test
```

### Canonical Rust Sync

The Rust crates behind `siderust-js` are intentionally patched to the canonical
workspace checkouts under `../../../rust/`. Keep `qtty-js`, `tempoch-js`, and
`siderust-js` aligned on the shared `rework-ffi` branch so the Node and Web
packages see the same `qtty`, `tempoch`, and `siderust` behavior during FFI
consolidation.

For local iteration, the current path patches are the safest option because
they follow uncommitted workspace changes immediately. If you need branch-pinned
Cargo resolution for CI or a separate clone, switch those patches to local
`git = "file:///..."` URLs on `branch = "rework-ffi"` after committing the Rust
workspaces.

## Related documentation

- [`siderust-node/README.md`](./siderust-node/README.md) for the Node package
Expand Down
70 changes: 49 additions & 21 deletions siderust-core/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion siderust-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,11 @@ name = "siderust_binding_core"
siderust = { version = "0.6.0", features = [] }
qtty = "0.4.1"
tempoch = "0.4"
affn = { version = "0.4.1", features = ["astro"] }
affn = { version = "0.5.0", features = ["astro"] }
chrono = "0.4.44"

[patch.crates-io]
affn = { path = "../../../rust/affn" }
qtty = { path = "../../../rust/qtty/qtty" }
siderust = { path = "../../../rust/siderust" }
tempoch = { path = "../../../rust/tempoch/tempoch" }
6 changes: 3 additions & 3 deletions siderust-core/src/body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ impl PlanetInfo {
name: name.to_string(),
mass_kg: p.mass.value(),
radius_km: p.radius.value(),
semi_major_axis_au: p.orbit.semi_major_axis.value(),
eccentricity: p.orbit.eccentricity,
inclination_deg: p.orbit.inclination.value(),
semi_major_axis_au: p.orbit.shape().semi_major_axis().value(),
eccentricity: p.orbit.shape().eccentricity(),
inclination_deg: p.orbit.orientation().inclination().value(),
}
}
}
Expand Down
Loading
Loading