File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ../../VERSION
Original file line number Diff line number Diff line change 11fn main ( ) {
22 // Copy VERSION file. Do not fail e.g. when built via `cargo publish`
3- if let Ok ( verpath) = std:: fs:: canonicalize ( "../.. /VERSION" ) {
3+ if let Ok ( verpath) = std:: fs:: canonicalize ( "./VERSION" ) {
44 if verpath. exists ( ) {
5- println ! ( "cargo:rerun-if-changed=../.. /VERSION" ) ;
5+ println ! ( "cargo:rerun-if-changed=./VERSION" ) ;
66 }
77 }
88 println ! ( "cargo:rerun-if-changed=build.rs" ) ;
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ use tracing::instrument;
4646
4747/// The minimum VERSION of the Fluvio Platform that this client is compatible with.
4848const MINIMUM_PLATFORM_VERSION : & str = "0.9.0" ;
49- pub ( crate ) const VERSION : & str = include_str ! ( "../../../ VERSION") ;
49+ pub ( crate ) const VERSION : & str = include_str ! ( concat! ( env! ( "CARGO_MANIFEST_DIR" ) , "/ VERSION") ) ;
5050
5151/// Creates a producer that sends records to the named topic
5252///
You can’t perform that action at this time.
0 commit comments