Home
last modified time | relevance | path

Searched refs:crate_name (Results 1 – 25 of 90) sorted by relevance

1234

/third_party/gn/examples/rust_example/build/
DBUILD.gn3 depfile = "{{target_out_dir}}/{{crate_name}}.d"
4 outfile = "{{target_out_dir}}/{{crate_name}}"
5 …command = "rustc --crate-name {{crate_name}} {{source}} --crate-type {{crate_type}} --emit=dep-inf…
11 depfile = "{{target_out_dir}}/{{crate_name}}.d"
12 outfile = "{{target_out_dir}}/{{crate_name}}.a"
13 …command = "rustc --crate-name {{crate_name}} {{source}} --crate-type {{crate_type}} --emit=dep-inf…
19 depfile = "{{target_out_dir}}/{{crate_name}}.d"
20 outfile = "{{target_out_dir}}/lib{{crate_name}}.rlib"
21 …command = "rustc --crate-name {{crate_name}} {{source}} --crate-type {{crate_type}} --emit=dep-inf…
27 depfile = "{{target_out_dir}}/{{crate_name}}.d"
[all …]
/third_party/gn/src/gn/
Dninja_rust_binary_target_writer_unittest.cc44 target.rust_values().crate_name() = "foo_bar"; in TEST_F()
98 private_rlib.rust_values().crate_name() = "privatecrate"; in TEST_F()
139 far_public_rlib.rust_values().crate_name() = "farcrate"; in TEST_F()
179 public_rlib.rust_values().crate_name() = "publiccrate"; in TEST_F()
220 rlib.rust_values().crate_name() = "direct"; in TEST_F()
234 target.rust_values().crate_name() = "main_crate"; in TEST_F()
285 private_inside_dylib.rust_values().crate_name() = "private_inside"; in TEST_F()
325 inside_dylib.rust_values().crate_name() = "inside"; in TEST_F()
366 dylib.rust_values().crate_name() = "mylib"; in TEST_F()
411 private_dylib.rust_values().crate_name() = "private_dylib"; in TEST_F()
[all …]
Dninja_rust_binary_target_writer.cc43 target->rust_values().crate_name(), opts, out); in WriteCrateVars()
262 auto write_extern_lib_file = [this](std::string_view crate_name, in WriteExternsAndDeps()
265 out_ << crate_name; in WriteExternsAndDeps()
278 std::string_view crate_name; in WriteExternsAndDeps() argument
281 crate_name = it->second; in WriteExternsAndDeps()
283 crate_name = dep.rust_values().crate_name(); in WriteExternsAndDeps()
287 out_ << crate_name; in WriteExternsAndDeps()
334 for (const auto& [crate_name, lib_file] : cur.externs()) { in WriteExternsAndDeps()
335 write_extern_lib_file(crate_name, lib_file); in WriteExternsAndDeps()
Drust_project_writer_unittest.cc39 target.rust_values().crate_name() = "foo"; in TEST_F()
93 dep.rust_values().crate_name() = "tortoise"; in TEST_F()
104 target.rust_values().crate_name() = "hare"; in TEST_F()
179 dep.rust_values().crate_name() = "tortoise"; in TEST_F()
190 dep2.rust_values().crate_name() = "achilles"; in TEST_F()
201 target.rust_values().crate_name() = "hare"; in TEST_F()
301 dep.rust_values().crate_name() = "tortoise"; in TEST_F()
326 dep4.rust_values().crate_name() = "tortoise_macro"; in TEST_F()
337 target.rust_values().crate_name() = "hare"; in TEST_F()
441 target.rust_values().crate_name() = "foo"; in TEST_F()
[all …]
Drust_project_writer_helpers_unittest.cc313 target.rust_values().crate_name() = "foo"; in TEST_F()
335 target.rust_values().crate_name() = "foo"; in TEST_F()
357 target.rust_values().crate_name() = "foo"; in TEST_F()
378 target.rust_values().crate_name() = "foo"; in TEST_F()
400 target.rust_values().crate_name() = "foo"; in TEST_F()
422 target.rust_values().crate_name() = "foo"; in TEST_F()
Drust_variables.cc45 const char kRustCrateName[] = "crate_name";
47 "crate_name: [string] The name for the compiled crate.";
49 R"(crate_name: [string] The name for the compiled crate.
54 If crate_name is not set, then this rule will use the target name.
Drust_values.h40 std::string& crate_name() { return crate_name_; } in crate_name() function
41 const std::string& crate_name() const { return crate_name_; } in crate_name() function
Dninja_c_binary_target_writer_unittest.cc1354 library_target.rust_values().crate_name() = "foo"; in TEST_F()
1462 priv_in_staticlib.rust_values().crate_name() = "priv_in_staticlib"; in TEST_F()
1477 pub_in_staticlib.rust_values().crate_name() = "pub_in_staticlib"; in TEST_F()
1491 priv_in_dylib.rust_values().crate_name() = "priv_in_dylib"; in TEST_F()
1504 pub_in_dylib.rust_values().crate_name() = "pub_in_dylib"; in TEST_F()
1527 dylib.rust_values().crate_name() = "dylib"; in TEST_F()
1599 pub_in_staticlib.rust_values().crate_name() = "pub_in_staticlib"; in TEST_F()
1612 priv_in_staticlib.rust_values().crate_name() = "priv_in_staticlib"; in TEST_F()
1636 priv_in_procmacro.rust_values().crate_name() = "priv_in_procmacro"; in TEST_F()
1651 pub_in_procmacro.rust_values().crate_name() = "pub_in_procmacro"; in TEST_F()
[all …]
Drust_project_writer.cc246 std::string_view crate_name) { in AddSysrootDependencyToCrate() argument
247 if (const auto crate_idx = sysroot.find(crate_name); in AddSysrootDependencyToCrate()
249 crate->AddDependency(crate_idx->second, std::string(crate_name)); in AddSysrootDependencyToCrate()
353 crate.AddDependency(idx, dep->rust_values().crate_name()); in AddTarget()
Drust_values_generator.cc72 target_->rust_values().crate_name() = target_->label().name(); in FillCrateName()
78 target_->rust_values().crate_name() = std::move(value->string_value()); in FillCrateName()
Dfunctions_target_rust_unittest.cc32 ASSERT_EQ(item_collector.back()->AsTarget()->rust_values().crate_name(), in TEST_F()
43 ASSERT_EQ(item_collector.back()->AsTarget()->rust_values().crate_name(), in TEST_F()
45 << item_collector.back()->AsTarget()->rust_values().crate_name(); in TEST_F()
/third_party/rust/crates/libc/ci/ios/
Ddeploy_and_run_on_ios_simulator.rs24 fn package_as_simulator_app(crate_name: &str, test_binary_path: &Path) { in package_as_simulator_app()
29 Path::new("ios_simulator_app").join(crate_name))); in package_as_simulator_app()
45 "#, crate_name).as_bytes())); in package_as_simulator_app()
159 let crate_name = test_binary_path.file_name().unwrap(); in main() localVariable
161 package_as_simulator_app(crate_name.to_str().unwrap(), test_binary_path); in main()
/third_party/rust/crates/clap/tests/builder/
Dcargo.rs4 crate_authors, crate_description, crate_name, crate_version, error::ErrorKind, Command,
88 fn crate_name() { in crate_name() function
89 let res = Command::new(crate_name!()) in crate_name()
/third_party/rust/crates/cxx/third-party/bazel/
Ddefs.bzl78 for crate_name, crate_label in deps_map.items():
79 existing = dependencies[pkg_name][condition].get(crate_name)
81 inconsistent_entries.append((crate_name, existing, crate_label))
82 dependencies[pkg_name][condition].update({crate_name: crate_label})
119 for crate_name, crate_label in deps_set.items():
120 flat_deps.update({crate_name: crate_label})
/third_party/rust/crates/glob/
DBUILD.gn17 crate_name = "glob"
/third_party/rust/crates/termcolor/
DBUILD.gn17 crate_name = "termcolor"
/third_party/rust/crates/autocfg/
DBUILD.gn17 crate_name = "autocfg"
/third_party/rust/crates/either/
DBUILD.gn17 crate_name = "either"
/third_party/rust/crates/rustc-hash/
DBUILD.gn17 crate_name = "rustc_hash"
/third_party/rust/crates/pin-utils/
DBUILD.gn17 crate_name = "pin_utils"
/third_party/rust/crates/bitflags/
DBUILD.gn17 crate_name = "bitflags"
/third_party/rust/crates/minimal-lexical/
DBUILD.gn17 crate_name = "minimal_lexical"
/third_party/rust/crates/static-assertions-rs/
DBUILD.gn17 crate_name = "static_assertions"
/third_party/rust/crates/humantime/
DBUILD.gn17 crate_name = "humantime"
/third_party/rust/crates/libc/
DBUILD.gn17 crate_name = "libc"

1234