EmbarkStudios / texture-synthesis

🎨 Example-based texture synthesis written in Rust 🦀
http://embark.rs
Apache License 2.0
1.75k stars 81 forks source link

Make cdylib #68

Open Jake-Shadle opened 4 years ago

Jake-Shadle commented 4 years ago

One of the current users of texture-synthesis is in Blender addons, but these are interacting with the CLI rather than with a library, and makes the CLI a de facto standard interface which is not its intention. We should add a C wrapper into the library to allow the use of texture-synthesis as a C shared library which can have a smaller, simpler, API surface that can be more stable and easier to interact with for cases such as the above.

repi commented 4 years ago

Bonus points if the C interface is also WASM compatible so the core service can be compiled into a WASM module. although would likely be quite unusable due to no threading