chore(build): introduce tarantool-build to build tarantool-sys
This patch boils down to the following improvements: * Various linkage-related shenanigans have been documented and revamped. * All logic to build tarantool-sys is now encapsulated in tarantool-build. * Most of the magic `println!`s are now encapsulated in build-rs-helpers. * Unsound function `export_symbols` has been dropped in favor of explicit linker flags (`--require-defined` for linux & `-u` for mac). * `TarantoolBuildRoot` is now in charge of building and linking tarantool libs. It defines the build tree via path helper functions. * Picodata's `build.rs` should be a little easier to read.
Showing
- Cargo.lock 16 additions, 1 deletionCargo.lock
- Cargo.toml 7 additions, 4 deletionsCargo.toml
- build-rs-helpers/Cargo.toml 7 additions, 0 deletionsbuild-rs-helpers/Cargo.toml
- build-rs-helpers/src/cargo.rs 64 additions, 0 deletionsbuild-rs-helpers/src/cargo.rs
- build-rs-helpers/src/lib.rs 55 additions, 0 deletionsbuild-rs-helpers/src/lib.rs
- build-rs-helpers/src/rustc.rs 59 additions, 0 deletionsbuild-rs-helpers/src/rustc.rs
- build.rs 132 additions, 535 deletionsbuild.rs
- src/lib.rs 0 additions, 1 deletionsrc/lib.rs
- src/main.rs 0 additions, 5 deletionssrc/main.rs
- tarantool-build/Cargo.toml 7 additions, 0 deletionstarantool-build/Cargo.toml
- tarantool-build/src/lib.rs 395 additions, 0 deletionstarantool-build/src/lib.rs
Loading
Please register or sign in to comment