# License

Copyright 2023-2025, C.N.R. - Consiglio Nazionale delle Ricerche

Licensed under either of

- [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)

- [MIT license](http://opensource.org/licenses/MIT)

at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

## License Notice for Optional Feature Dependencies (LGPL-3.0 Compliance)

If you enable the `rug` feature (with the optional flag `--features=rug`), this project will use the [`Rug`](https://crates.io/crates/rug) library, which is licensed under the [LGPL-3.0](https://www.gnu.org/licenses/lgpl-3.0.html). Activating this feature may introduce [LGPL-3.0](https://www.gnu.org/licenses/lgpl-3.0.html) requirements to your project.
Specifically, if you distribute a product that links with [`Rug`](https://crates.io/crates/rug), you may need to comply with the [LGPL-3.0](https://www.gnu.org/licenses/lgpl-3.0.html) license terms, which require the ability to replace or relink the [`Rug`](https://crates.io/crates/rug) component by the end-user.

To avoid [LGPL-3.0](https://www.gnu.org/licenses/lgpl-3.0.html) obligations, you can use this library without enabling the `rug` feature, thereby excluding [`Rug`](https://crates.io/crates/rug) as a dependency.
