Reputation: 3196
Cargo.toml
[lib]
name = "faceblaster-engine"
crate_type = ["dylib"]
Whenever I execute cargo build
my dylib is named:
libfaceblaster-engine-f09635dc7c9bd155.so
.
Is there anyway to add something to the .toml
file to remove the hash being placed on the end?
Thanks in advance for any help!
Upvotes: 4
Views: 362
Reputation: 15539
This hash is the result of a bunch of metadata, which, IIRC, includes the version of the Rust compiler used to make it. Because Rust does not have a defined ABI, you can only use this library with the exact same SHA of the compiler which was used to make it. Erasing this data would erase your ability to know if you can actually successfully use it or not.
Upvotes: 3