Merge branch 'cargo' into 'master'
docs: Correct Cargo update instructions See merge request Librem5/squeekboard!398
This commit is contained in:
@ -179,7 +179,10 @@ Dependencies must be specified in `Cargo.toml` with 2 numbers: "major.minor". Si
|
|||||||
|
|
||||||
```
|
```
|
||||||
cd build_dir
|
cd build_dir
|
||||||
ninja build src/Cargo.toml
|
ninja ./Cargo.toml
|
||||||
sh /source_path/cargo.sh update
|
sh /source_path/cargo.sh update
|
||||||
ninja test
|
ninja test
|
||||||
|
cp ./Cargo.lock /source_path/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Since version 1.9.3, `Cargo.lock` is not actually used by the build system, due to `Cargo.toml` being generated at every build.
|
||||||
|
|||||||
@ -72,6 +72,7 @@ summary = [
|
|||||||
message('\n'.join(summary))
|
message('\n'.join(summary))
|
||||||
|
|
||||||
# Rust deps are changing, depending on compile flags. Cargo can't handle it alone.
|
# Rust deps are changing, depending on compile flags. Cargo can't handle it alone.
|
||||||
|
# As a side effect, Cargo.toml never gets used.
|
||||||
cargo_toml_in = files('Cargo.toml.in')
|
cargo_toml_in = files('Cargo.toml.in')
|
||||||
path_data = configuration_data()
|
path_data = configuration_data()
|
||||||
path_data.set('path', meson.source_root())
|
path_data.set('path', meson.source_root())
|
||||||
|
|||||||
Reference in New Issue
Block a user