robo9k / rust-magic-sys

Rust declarations crate for the `libmagic` C library
Apache License 2.0
10 stars 6 forks source link

Fix mutable pointers #21

Closed robo9k closed 3 years ago

robo9k commented 3 years ago

Use *mut Rust pointers for C pointers without const *, this is also what bindgen would generate.

Remove Magic struct in favor of libmagic structs magic_set and magic_t. This is a semver breaking change.