Skip to content

Commit b5607ce

Browse files
committed
Prepare for 0.11.0 release
1 parent eec087b commit b5607ce

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Changelog
22

3+
### 0.11.0 (2023-10-06)
4+
5+
- Add `f32` feature to use `f32` instead of `f64` for the input values and the computations (thanks to @hakolao).
6+
37
### 0.10.0 (2023-03-20)
48

59
- Allow to compute isobands as `MultiPolygon` using the `isobands` method of the `ContourBuilder` struct.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "contour"
3-
version = "0.10.0"
3+
version = "0.11.0"
44
authors = ["Matthieu Viry <[email protected]>"]
55
edition = "2021"
66

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Add this to your `Cargo.toml`:
1919

2020
```toml
2121
[dependencies]
22-
contour = "0.10.0"
22+
contour = "0.11.0"
2323
```
2424

2525
and this to your crate root:
@@ -90,7 +90,7 @@ The `geojson` feature is not enabled by default, so you need to specify it in yo
9090

9191
```toml
9292
[dependencies]
93-
contour = { version = "0.10.0", features = ["geojson"] }
93+
contour = { version = "0.11.0", features = ["geojson"] }
9494
```
9595

9696
```rust
@@ -143,6 +143,16 @@ Feature {
143143
}
144144
```
145145

146+
**Using the `f32` feature**
147+
148+
By default, this crate expects `f64` values as input and uses `f64` values for its computations.
149+
If you want to use `f32` values instead, you need to specify the `f32` feature in your `Cargo.toml`:
150+
151+
```toml
152+
[dependencies]
153+
contour = { version = "0.11.0", features = ["f32"] }
154+
```
155+
146156
## WASM demo
147157

148158
Demo of this crate compiled to WebAssembly and used from JavaScript : [wasm_demo_contour](https://mthh.github.io/wasm_demo_contour/).

0 commit comments

Comments
 (0)