From 91a9307c39ae86bebb170b33ca61dcb97e7c02b4 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 18 Dec 2020 11:56:56 +1000 Subject: [PATCH] update to cargo-raze 0.8.0 release --- Cargo.toml | 1 + cargo/README.md | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3c20d5e66..915de2e59 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,6 +14,7 @@ path = "src/lib.rs" [package.metadata.raze] workspace_path = "//cargo" package_aliases_dir = "cargo" +rust_rules_workspace_name = "io_bazel_rules_rust" # pull requests that add other targets (eg Arm Linux, FreeBSD) welcome - you'll # need to update platforms/, BUILD.request.bazel and pylib/anki/BUILD.bazel as diff --git a/cargo/README.md b/cargo/README.md index 63a79706e..f7c977430 100644 --- a/cargo/README.md +++ b/cargo/README.md @@ -1,16 +1,16 @@ This folder integrates Rust crates.io fetching into Bazel. +To update dependencies, ensure a local Rust environment is available +(eg install rustup), then run: + +``` +cargo install cargo-raze --version 0.8.0 +``` + After updating dependencies in ../rslib/Cargo.toml, change to this folder and run python update.py to update the external Bazel repositories to point to the updated deps. -Currently you'll need to: - -- have a local Rust environment installed -- fetch cargo-raze from GitHub -- check out 52f20dda88da0feb696ec2fea32e82840d203c13 -- then change to the impl folder, and run 'cargo install --path .' to install it. - A couple of crates need extra work to build with Bazel, and are listed in ../Cargo.toml. For example: