Skip to content

Commit 6b86e46

Browse files
committed
Prepare for 0.8.0 release
This new release generates bindings against sfcgal 2.0.0 C API.
1 parent c6dec15 commit 6b86e46

File tree

5 files changed

+20
-15
lines changed

5 files changed

+20
-15
lines changed

.github/workflows/build_doc.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ env:
99
name: Build documentation on new release
1010
jobs:
1111
doc:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- run: |
1616
sudo apt-get install -y libboost1.74-all-dev libmpfr-dev libgmp-dev cmake wget unzip clang libstdc++-11-dev
1717
wget https://github.com/CGAL/cgal/releases/download/v5.6.1/CGAL-5.6.1-library.tar.xz
18-
wget https://gitlab.com/SFCGAL/SFCGAL/-/archive/v1.5.0/SFCGAL-v1.5.0.zip
18+
wget https://gitlab.com/SFCGAL/SFCGAL/-/archive/v2.0.0/SFCGAL-v2.0.0.zip
1919
tar -xf CGAL-5.6.1-library.tar.xz
20-
unzip SFCGAL-v1.5.0.zip
20+
unzip SFCGAL-v2.0.0.zip
2121
cd CGAL-5.6.1 && cmake . && sudo make install && cd ..
2222
cd $(ls -d */ | grep SFC) && cmake -DCMAKE_INSTALL_PREFIX=/usr . && make && sudo make install && cd ..
2323
- run: |

.github/workflows/test.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ on:
77
name: Build and run tests
88
jobs:
99
test:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-22.04
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
- run: |
1414
sudo apt-get install -y libboost1.74-all-dev libmpfr-dev libgmp-dev cmake wget unzip clang libstdc++-11-dev
1515
wget https://github.com/CGAL/cgal/releases/download/v5.6.1/CGAL-5.6.1-library.tar.xz
16-
wget https://gitlab.com/SFCGAL/SFCGAL/-/archive/v1.5.0/SFCGAL-v1.5.0.zip
16+
wget https://gitlab.com/SFCGAL/SFCGAL/-/archive/v2.0.0/SFCGAL-v2.0.0.zip
1717
tar -xf CGAL-5.6.1-library.tar.xz
18-
unzip SFCGAL-v1.5.0.zip
18+
unzip SFCGAL-v2.0.0.zip
1919
cd CGAL-5.6.1 && cmake . && sudo make install && cd ..
2020
cd $(ls -d */ | grep SFC) && cmake -DCMAKE_INSTALL_PREFIX=/usr . && make && sudo make install && cd ..
2121
- run: cargo test --all-features

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [0.8.0] - 2024-10-31
5+
### Changed
6+
- Generate bindings against latest SFCGAL version `2.0.0`.
7+
- Update `bindgen` version to `0.70`.
8+
49
## [0.7.0] - 2024-04-16
510
### Changed
611
- Generate bindings against latest SFCGAL version `1.5.0`.

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sfcgal-sys"
3-
version = "0.7.0"
3+
version = "0.8.0"
44
authors = ["Matthieu Viry <matthieu.viry@cnrs.fr>"]
55
license = "MIT/Apache-2.0"
66
edition = "2021"
@@ -15,5 +15,5 @@ repository = "https://github.com/mthh/sfcgal-sys"
1515
categories = ["external-ffi-bindings"]
1616

1717
[build-dependencies]
18-
bindgen = "0.69"
18+
bindgen = "0.70"
1919
cc = "1.0"

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
[![Build](https://github.com/mthh/sfcgal-sys/actions/workflows/test.yml/badge.svg)](https://github.com/mthh/sfcgal-sys/actions/workflows/test.yml)
44
[![Crates.io](https://img.shields.io/crates/v/sfcgal-sys.svg)](https://crates.io/crates/sfcgal-sys)
5-
[![Documentation](https://img.shields.io/badge/documentation-0.7.0-green)](https://mthh.github.io/sfcgal-sys/sfcgal_sys/)
5+
[![Documentation](https://img.shields.io/badge/documentation-0.8.0-green)](https://mthh.github.io/sfcgal-sys/sfcgal_sys/)
66

7-
Rust low-level FFI bindings to [`SFCGAL`](https://sfcgal.gitlab.io/SFCGAL/) 1.5.x C API.
7+
Rust low-level FFI bindings to [`SFCGAL`](https://sfcgal.gitlab.io/SFCGAL/) 2.0.x C API.
88
Don't use this crate directly, prefer it's higher-level wrapper : [sfcgal-rs](https://github.com/mthh/sfcgal-rs).
99

1010
> [!IMPORTANT]
11-
> Note that the required version of SFCGAL is currently 1.5.x (latest version - 2023-10-30).
12-
> If you want to use SFCCAL 1.4.x, you can use the 0.6.x version of this crate / of [sfcgal-rs](https://github.com/mthh/sfcgal-rs).
11+
> Note that the required version of SFCGAL is currently 2.0.x (latest version - 2024-10-10).
12+
> If you want to use SFCCAL 1.5.x, you can use the 0.7.x version of this crate / of [sfcgal-rs](https://github.com/mthh/sfcgal-rs).
1313
1414
## Internals
1515

@@ -19,7 +19,7 @@ Then bindgen is run to generate these low-levels bindings.
1919

2020
In addition to all the `sfcgal_` types and functions, this crate expose :
2121
- a Rust `initialize` function: it calls `sfcgal_init()` function then it calls a custom `w_sfcgal_init_handlers()` function which replace the error and warning handlers from `printf` to a char buffer. That `initialize` function internally uses `std::sync::Once` to ensure it's only called once.
22-
- two C functions `w_sfcgal_get_last_error` and `w_sfcgal_get_last_warning` which repectively reads the buffer containing the error message and the buffer containing the warning message.
22+
- two C functions `w_sfcgal_get_last_error` and `w_sfcgal_get_last_warning` which respectively reads the buffer containing the error message and the buffer containing the warning message.
2323

2424
In the future it could probably be improved by not requiring SFCGAL to be installed as a system library.
2525

0 commit comments

Comments
 (0)