4 ms·
(Ab)using `build.rs` for license checking is brilliant and horrible at once ;-) (Another argument for sandboxing build scripts?) By the way, `Cargo.toml` examp
by lifthrasiir 2y ago
(Ab)using `build.rs` for license checking is brilliant and horrible at once ;-) (Another argument for sandboxing build scripts?)
By the way, `Cargo.toml` example in the installation section has a significant typo:
symbolica = { "*" } # Should have been just `symbolica = "*"`.
- SPACECADET3D 2y agoThanks for reporting, I fixed the typo. I actually had an idea to do an OEM license check in build.rs that compiles out all license checks so that this version can be included in customers' software ^^
- arjvik 2y agoI can’t find this code - which build.rs file is it in?
- lifthrasiir 2y agoSee https://symbolica.io/docs/get_started.html#license https://symbolica.io/docs/get_started.html#license for the context.
- MichaelMug 2y agoI see all the license checking code in lib.rs but nothing in build.rs?
- lifthrasiir 2y agoOoh, you were right. Either something has changed since my initial viewing (unlikely) or I have incorrectly assumed that it is in build.rs because all other examples don't contain `LicenseManager` (much more likely).
- lifthrasiir 2y agoEDIT: Symbolica doesn't use `build.rs` for license checking, that was clearly my misunderstanding.