-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support user data with USINGZ #11
base: main
Are you sure you want to change the base?
Conversation
Cargo.toml
Outdated
@@ -31,3 +32,6 @@ serde_json = "1" | |||
# docs.rs uses a nightly compiler, so by instructing it to use our `doc-images` feature we | |||
# ensure that it will render any images that we may have in inner attribute documentation. | |||
features = ["doc-images"] | |||
|
|||
[patch.crates-io] | |||
clipper2c-sys = { rev = "210878394637f94bcd3a476bdf24ddf4ba8a39fd", git = "https://github.com/tirithen/clipper2c-sys" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: fix this before merging
1d9fa1f
to
72d7dc3
Compare
One problem with this PR is that it breaks e.g. |
I think using |
Sister PR to tirithen/clipper2c-sys#6. Adds a
usingz
cargo feature to support user data in points.I think the main complication is the double
Box
dance to be able to pass Rust closures as a C callback. I think this is a nicer API than just a function pointer, which would also leak clipper2c-sys internal types.