1*d4726bddSHONG Yifan"""# Crate Universe 2*d4726bddSHONG Yifan 3*d4726bddSHONG YifanCrate Universe is a set of Bazel rule for generating Rust targets using Cargo. 4*d4726bddSHONG Yifan 5*d4726bddSHONG YifanThis doc describes using crate_universe with bzlmod. 6*d4726bddSHONG Yifan 7*d4726bddSHONG YifanIf you're using a WORKSPACE file, please see [the WORKSPACE equivalent of this doc](crate_universe.html). 8*d4726bddSHONG Yifan 9*d4726bddSHONG YifanThere are some examples of using crate_universe with bzlmod: 10*d4726bddSHONG Yifan 11*d4726bddSHONG Yifan* https://github.com/bazelbuild/rules_rust/blob/main/examples/bzlmod/hello_world/MODULE.bazel 12*d4726bddSHONG Yifan* https://github.com/bazelbuild/rules_rust/blob/main/examples/bzlmod/override_target/MODULE.bazel 13*d4726bddSHONG Yifan* https://github.com/bazelbuild/rules_rust/blob/main/examples/bzlmod/all_crate_deps/MODULE.bazel 14*d4726bddSHONG Yifan""" 15*d4726bddSHONG Yifan 16*d4726bddSHONG Yifanload( 17*d4726bddSHONG Yifan "//crate_universe:extension.bzl", 18*d4726bddSHONG Yifan _crate = "crate", 19*d4726bddSHONG Yifan) 20*d4726bddSHONG Yifan 21*d4726bddSHONG Yifancrate = _crate 22