https://github.com/programmerjake/simple-soft-float
soft-float library that intends to be a straightforward reference implementation of IEEE 754; mirror of https://salsa.debian.org/Kazan-team/simple-soft-float
https://github.com/programmerjake/simple-soft-float
Last synced: 11 months ago
JSON representation
soft-float library that intends to be a straightforward reference implementation of IEEE 754; mirror of https://salsa.debian.org/Kazan-team/simple-soft-float
- Host: GitHub
- URL: https://github.com/programmerjake/simple-soft-float
- Owner: programmerjake
- License: lgpl-2.1
- Created: 2019-10-23T08:36:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-24T06:47:37.000Z (almost 6 years ago)
- Last Synced: 2025-01-10T14:30:04.961Z (about 1 year ago)
- Language: Rust
- Homepage:
- Size: 1.3 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Soft-float library that intends to be a straightforward reference implementation of IEEE 754.
## Installation for use from Rust
Add to your `Cargo.toml`:
```toml
[dependencies.simple-soft-float]
version = "0.2"
```
## Installation for use from Python
Install Rust using [rustup.rs](https://rustup.rs).
Create CPython 3.6 to 3.8 virtualenv.
Install Python bindings build tool:
```bash
pip install maturin
```
Get source:
```bash
git clone https://salsa.debian.org/Kazan-team/simple-soft-float.git
cd simple-soft-float
```
Change source dir to use specific version of Rust nightly:
(must be in `simple-soft-float` dir):
```bash
rustup override set nightly-2020-01-23
```
Build and Test (like `setup.py develop`):
```bash
cargo test --features python # runs tests from Rust
# build and install to python
maturin develop --cargo-extra-args="--features python-extension"
python -m unittest # runs smoke tests from Python
```
Build Rust docs:
```bash
cargo doc --features python # ignore warning about rand_core name collision
open docs in default browser:
xdg-open target/doc/simple_soft_float/struct.DynamicFloat.html
```
Build Python docs:
```bash
pip install pdoc3
pdoc3 simple_soft_float --html -o target/python-docs
xdg-open target/python-docs/simple_soft_float.html
```