#Build.rs with example code
8 messages · Page 1 of 1 (latest)
Spin the examples off into separate packages in a workspace and have build.rs files in those packages
Are you suggesting one crate per example or one crate with all the examples?
One package per example
Okay. So what’s the purpose of example code in an examples/ directory? Like I specifically have examples of how to use the crate and demonstrate it using ‘cargo run —example <file name>’
examples/ is more convenient
but when you need advanced functionality like build scripts, a workspace is better
Ah, okay