100+ results for 'crate_name'
Not the results you expected?
deprecated-impls.rs (https://gitlab.com/jianglu/rust) Rust · 128 lines
json_dumper.rs (https://gitlab.com/alx741/rust) Rust · 651 lines
macro_import.rs (https://gitlab.com/alx741/rust) Rust · 193 lines
34 impl<'a> MacroLoader<'a> {
35 fn new(sess: &'a Session, cstore: &'a CStore, crate_name: &str) -> MacroLoader<'a> {
36 MacroLoader {
38 span_whitelist: HashSet::new(),
39 reader: CrateReader::new(sess, cstore, crate_name),
40 macros: vec![],
52 krate: &ast::Crate,
53 crate_name: &str)
54 -> Vec<ast::MacroDef>
55 {
56 let mut loader = MacroLoader::new(sess, cstore, crate_name);
lib.rs (https://gitlab.com/pranith/rust) Rust · 117 lines
publish.rs (https://gitlab.com/frewsxcv/cargo) Rust · 157 lines
41 expected_json,
42 expected_crate_name,
43 expected_files,
50 expected_json: &str,
51 expected_crate_name: &str,
52 expected_files: &[&str],
101 ///
102 /// - `expected_crate_name` should be something like `foo-0.0.1.crate`.
103 /// - `expected_files` should be a complete list of files in the crate
116 rdr.header().unwrap().filename().unwrap(),
117 expected_crate_name.as_bytes()
118 );
133 assert!(expected_crate_name.ends_with(".crate"));
134 let base_crate_name = Path::new(&expected_crate_name[..expected_crate_name.len() - 6]);
135 let actual_files: HashSet<PathBuf> = files.keys().cloned().collect();
lib.rs (https://gitlab.com/0072016/0072016-rusty) Rust · 124 lines
std_inject.rs (https://gitlab.com/pranith/rust) Rust · 157 lines
unit_graph.rs (https://gitlab.com/frewsxcv/cargo) Rust · 233 lines
lib.rs (https://gitlab.com/alx741/rust) Rust · 111 lines
lint_stability.rs (https://gitlab.com/alx741/rust) Rust · 179 lines
lib.rs (https://gitlab.com/alx741/rust) Rust · 219 lines
mod.rs (https://gitlab.com/frewsxcv/cargo) Rust · 135 lines
exported_symbols.rs (https://gitlab.com/jianglu/rust) Rust · 133 lines
dependency.rs (https://gitlab.com/alx741/crates.io) Rust · 122 lines
64 pub fn git_encode(&self, crate_name: &str) -> git::Dependency {
65 let Dependency { id: _, version_id: _, crate_id: _, ref req,
68 git::Dependency {
69 name: crate_name.to_string(),
70 req: req.to_string(),
79 pub fn encodable(self, crate_name: &str) -> EncodableDependency {
80 let Dependency { id, version_id, crate_id: _, req, optional,
84 version_id: version_id,
85 crate_id: crate_name.to_string(),
86 req: req.to_string(),
lib.rs (https://gitlab.com/alx741/rust) Rust · 45 lines
lib.rs (https://gitlab.com/rust-lang/rust) Rust · 279 lines
lib.rs (https://gitlab.com/alx741/rust) Rust · 62 lines
lib.rs (https://gitlab.com/aw1231/redox) Rust · 85 lines
lib.rs (https://gitlab.com/rust-lang/rust) Rust · 162 lines
10 let patch = env!("CARGO_PKG_VERSION_PATCH").parse::<u16>().unwrap();
11 let crate_name = String::from(env!("CARGO_PKG_NAME"));
23 commit_date,
24 crate_name,
25 }
36 pub commit_date: Option<String>,
37 pub crate_name: String,
38 }
51 "{} {}.{}.{} ({} {})",
52 self.crate_name, self.major, self.minor, self.patch, hash_trimmed, date_trimmed,
53 )?;
54 } else {
55 write!(f, "{} {}.{}.{}", self.crate_name, self.major, self.minor, self.patch)?;
56 }
lib.rs (https://gitlab.com/pranith/rust) Rust · 59 lines
diagnostic_items.rs (https://gitlab.com/rust-lang/rust) Rust · 113 lines
exported_symbols.rs (https://gitlab.com/rust-lang/rust) Rust · 72 lines
namespace.rs (https://gitlab.com/0072016/0072016-rusty) Rust · 135 lines
rfc-2632-const-trait-impl.rs (https://gitlab.com/rust-lang/rust) Rust · 69 lines
main.rs (https://gitlab.com/juggle-tux/elf.rs) Rust · 91 lines
std_inject.rs (https://gitlab.com/0072016/0072016-rusty) Rust · 171 lines
unused-attr-duplicate.rs (https://gitlab.com/rust-lang/rust) Rust · 105 lines
nested-modules.rs (https://gitlab.com/rust-lang/rust) Rust · 42 lines
cargo_doc.rs (https://gitlab.com/alx741/cargo) Rust · 114 lines
svh-a-base.rs (https://gitlab.com/alx741/rust) Rust · 35 lines
the_backend.rs (https://gitlab.com/jianglu/rust) Rust · 82 lines
50 Box::new(tcx.crate_name(LOCAL_CRATE) as Symbol)
51 }
62 use rustc_codegen_utils::link::out_filename;
63 let crate_name = ongoing_codegen.downcast::<Symbol>()
64 .expect("in join_codegen_and_link: ongoing_codegen is not a Symbol");
69 let output_name =
70 out_filename(sess, crate_type, &outputs, &*crate_name.as_str());
71 let mut out_file = ::std::fs::File::create(output_name).unwrap();
tests.rs (https://gitlab.com/rust-lang/rust) Rust · 300 lines
doc-cfg-traits.rs (https://gitlab.com/rust-lang/rust) Rust · 124 lines
lint_output_format.rs (https://gitlab.com/pranith/rust) Rust · 31 lines
lib.rs (https://gitlab.com/0072016/0072016-rusty) Rust · 74 lines
lib.rs (https://gitlab.com/alx741/rust) Rust · 57 lines
lib.rs (https://gitlab.com/alx741/rust) Rust · 80 lines
doc-cfg-simplification.rs (https://gitlab.com/rust-lang/rust) Rust · 182 lines
unit_graph.rs (https://gitlab.com/frewsxcv/cargo) Rust · 129 lines
22 /// The name the parent uses to refer to this dependency.
23 pub extern_crate_name: InternedString,
24 /// If `Some`, the name of the dependency if renamed in toml.
25 /// It's particularly interesting to artifact dependencies which rely on it
26 /// for naming their environment variables. Note that the `extern_crate_name`
27 /// cannot be used for this as it also may be the build target itself,
60 index: usize,
61 extern_crate_name: InternedString,
62 // This is only set on nightly since it is unstable.
99 index: indices[&unit_dep.unit],
100 extern_crate_name: unit_dep.extern_crate_name,
101 public,
inherited_stability.rs (https://gitlab.com/pranith/rust) Rust · 55 lines
lib.rs (https://gitlab.com/alx741/rust) Rust · 127 lines
foo.rs (https://gitlab.com/pranith/rust) Rust · 36 lines
foo.rs (https://gitlab.com/pranith/rust) Rust · 35 lines
issue_2242_a.rs (https://gitlab.com/pranith/rust) Rust · 20 lines
lib.rs (https://gitlab.com/alx741/rust) Rust · 59 lines
lib.rs (https://gitlab.com/alx741/rust) Rust · 53 lines
lib.rs (https://gitlab.com/pranith/rust) Rust · 89 lines
duplicate-cfg.rs (https://gitlab.com/rust-lang/rust) Rust · 53 lines
mod.rs (https://gitlab.com/pranith/rust) Rust · 57 lines
lib.rs (https://gitlab.com/pranith/rust) Rust · 65 lines
integration.rs (https://gitlab.com/rust-lang/rust) Rust · 89 lines
renamed-via-module.rs (https://gitlab.com/jianglu/rust) Rust · 34 lines
svh-b.rs (https://gitlab.com/pranith/rust) Rust · 23 lines
crateresolve5-2.rs (https://gitlab.com/pranith/rust) Rust · 33 lines
lib.rs (https://gitlab.com/jianglu/rust) Rust · 83 lines
namespace.rs (https://gitlab.com/jianglu/rust) Rust · 66 lines
namespace.rs (https://gitlab.com/alx741/rust) Rust · 91 lines
37 let name = match def_key.disambiguated_data.data {
38 DefPathData::CrateRoot => ccx.tcx().crate_name(def_id.krate),
39 data => data.as_interned_str()
66 let namespace_name = match def_key.disambiguated_data.data {
67 DefPathData::CrateRoot => ccx.tcx().crate_name(def_id.krate),
68 data => data.as_interned_str()
anon-extern-mod-cross-crate-1.rs (https://gitlab.com/alx741/rust) Rust · 19 lines
svh-uta-base.rs (https://gitlab.com/alx741/rust) Rust · 32 lines
lib.rs (https://gitlab.com/alx741/rust) Rust · 54 lines
foreign_lib.rs (https://gitlab.com/jianglu/rust) Rust · 48 lines
static-methods-crate.rs (https://gitlab.com/jianglu/rust) Rust · 39 lines
lib.rs (https://gitlab.com/alx741/rust) Rust · 52 lines
issue-4208-cc.rs (https://gitlab.com/alx741/rust) Rust · 20 lines
proc-macro.rs (https://gitlab.com/rust-lang/rust) Rust · 72 lines
lint-stability.rs (https://gitlab.com/rust-lang/rust) Rust · 188 lines
lib.rs (https://gitlab.com/aw1231/redox) Rust · 59 lines
mathx.rs (https://gitlab.com/cjcole/rust-lua53) Rust · 87 lines
lib.rs (https://gitlab.com/Srijancse/servo) Rust · 154 lines
crateresolve5-1.rs (https://gitlab.com/pranith/rust) Rust · 34 lines
extern-crosscrate-source.rs (https://gitlab.com/pranith/rust) Rust · 41 lines
lib.rs (https://gitlab.com/pranith/rust) Rust · 54 lines
cargo_doc.rs (https://gitlab.com/frewsxcv/cargo) Rust · 74 lines
with-self-in-projection-output-repeated-supertrait.rs (https://gitlab.com/rust-lang/rust) Rust · 51 lines
lib.rs (https://gitlab.com/alx741/rust) Rust · 44 lines
issue-2526.rs (https://gitlab.com/pranith/rust) Rust · 57 lines
cci_iter_lib.rs (https://gitlab.com/alx741/rust) Rust · 21 lines
lib.rs (https://gitlab.com/pranith/rust) Rust · 45 lines
issue-2631-a.rs (https://gitlab.com/pranith/rust) Rust · 24 lines
crateresolve4b-2.rs (https://gitlab.com/pranith/rust) Rust · 18 lines
crateresolve4b-1.rs (https://gitlab.com/pranith/rust) Rust · 18 lines
lib.rs (https://gitlab.com/github-cloud-corporation/habitat) Rust · 94 lines
where.rs (https://gitlab.com/rust-lang/rust) Rust · 51 lines
titles.rs (https://gitlab.com/rust-lang/rust) Rust · 56 lines
the_backend.rs (https://gitlab.com/rust-lang/rust) Rust · 82 lines
64 use std::io::Write;
65 let crate_name = codegen_results.crate_info.local_crate_name;
66 for &crate_type in sess.opts.crate_types.iter() {
69 }
70 let output_name = out_filename(sess, crate_type, &outputs, &*crate_name.as_str());
71 let mut out_file = ::std::fs::File::create(output_name).unwrap();