5 ms·
How would you embed SQLite into other programs if it were written in Rust? Isn't the lack of basically all dependencies the main advantage? (I'm actually curio
by 0x000xca0xfe 4y ago
How would you embed SQLite into other programs if it were written in Rust? Isn't the lack of basically all dependencies the main advantage?
(I'm actually curious, how does dynamic linking work with Rust? Can you build a .so/.dll/.h pair and ship it everywhere like with C?)
- steveklabnik 4y agoYou can create a dynamic library, to be linked to just like any C library, from Rust. Doing so was actually some of the first production uses of Rust ever. everywhere depends on what you mean; rustc does have support for fewer platforms than gcc. But it's still quite a few.