ClickHouse/rust/skim
Azat Khuzhin 0b258dda4e Reproducible builds for Rust
From now on cargo will not download anything from the internet during
builds. This step had been moved for docker image builds (via cargo
vendor).

And now cargo inside docker.io/clickhouse/binary-builder will not use
any crates from the internet, so we don't need to add --offline for
cargo commands in cmake (corrosion_import_crate()).

Also the docker build command had been adjusted to allow following
symlinks inside build context, by using tar, this is required for Rust
packages.

Note, that to make proper Cargo.lock that could be vendored I did the
following:
- per-project locks had been removed (since there is no automatic way to
  sync the workspace Cargo.lock with per-project Cargo.lock, since cargo
  update/generate-lockfile will use only per-project Cargo.toml files
  apparently, -Z minimal-versions does not helps either)
- and to generate Cargo.lock with less changes I've pinned version in
  the Cargo.toml strictly, i.e. not 'foo = "0.1"' but 'foo = "=0.1"'
  then the Cargo.lock for workspace had been generated and afterwards
  I've reverted this part.

Plus I have to update the dependencies afterwards, since otherwise there
are conflicts with dependencies for std library. Non trivial.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-07-22 22:46:22 +02:00
..
.cargo Integrate skim into the client/local 2022-12-14 20:57:41 +01:00
include Use already written part of the query for fuzzy search (pass to skim) 2022-12-26 14:52:38 +01:00
src Use "exact" matching for fuzzy search 2023-02-04 14:15:02 +01:00
.gitignore Integrate skim into the client/local 2022-12-14 20:57:41 +01:00
build.rs.in Fix rust modules rebuild (previously ignores changes in cargo config.toml) 2022-12-27 10:35:50 +01:00
Cargo.toml Reduce dependencies for skim by avoid using default features 2023-07-19 12:29:39 +02:00
CMakeLists.txt Revert "Disable skim (Rust library) under memory sanitizer" 2023-06-05 09:08:01 +02:00