https://github.com/jonaspleyer/approx-derive
Derive traits used in the approx crate.
https://github.com/jonaspleyer/approx-derive
approx approximation derive-macro numeric numerical-methods rust
Last synced: about 2 months ago
JSON representation
Derive traits used in the approx crate.
- Host: GitHub
- URL: https://github.com/jonaspleyer/approx-derive
- Owner: jonaspleyer
- License: apache-2.0
- Created: 2024-05-01T11:46:50.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2026-01-28T17:57:51.000Z (2 months ago)
- Last Synced: 2026-01-29T07:29:49.151Z (2 months ago)
- Topics: approx, approximation, derive-macro, numeric, numerical-methods, rust
- Language: Rust
- Homepage: https://github.com/jonaspleyer/approx-derive
- Size: 121 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ❗ Note ❗
This crate has been merged into the [`approx`](https://github.com/brendanzab/approx/) crate where it will be maintained from now on.
[](https://opensource.org/license/apache-2-0)
[](https://github.com/jonaspleyer/approx-derive/actions)
[](https://crates.io/crates/approx-derive)


# approx_derive
`approx-derive` extends the popular [`approx`](https://docs.rs/approx/latest/approx/)
by two derive macros `AbsDiffEq` and `RelativeEq`.
This allows to quickly derive implementations for comparing these types with the macros provided in
[`approx`](https://docs.rs/approx/latest/approx/) crate.
# Documentation
Visit [docs.rs](https://docs.rs/approx-derive/latest/approx_derive/) to view the documentation.
# Note
This crate was designed to be operated with the `approx` and `approxim` crates.
With the archiving of `approxim`, we will no longer support this crate actively and version `0.2.8`
remains the last supported compatible version.