it is finished (i think), ready for packaging

main
amy 3 years ago
parent 8571dd64f0
commit 546787376c
No known key found for this signature in database
GPG Key ID: 6672E6DD65BEA50B

8
Cargo.lock generated

@ -28,15 +28,15 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "libc"
version = "0.2.108"
version = "0.2.109"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8521a1b57e76b1ec69af7599e75e38e7b7fad6610f037db8c79b127201b5d119"
checksum = "f98a04dce437184842841303488f70d0188c5f51437d2a834dc097eafa909a01"
[[package]]
name = "memoffset"
version = "0.6.4"
version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "59accc507f1338036a0477ef61afdae33cde60840f4dfe481319ce3ad116ddf9"
checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce"
dependencies = [
"autocfg",
]

@ -1,4 +1,4 @@
use toml::{Value, toml};
use toml::{Value};
use std::{fs, env};
use std::io::Write;
@ -13,7 +13,6 @@ pub fn help() {
}
pub fn create_database() {
let homepath = env::var("HOME").unwrap();
let file = "/usr/share/pkg_warner/pkg_mngrs.db".to_string();
if !std::path::Path::new(&"/usr/share/pkg_warner/").is_dir() {
let _cdar = fs::create_dir_all("/usr/share/pkg_warner/".to_string());
@ -30,7 +29,7 @@ pub fn create_database() {
let result = connection
.execute(
"
CREATE TABLE pkg_mngrs (mngr TEXT, distro TEXT);
CREATE TABLE pkg_mngrs (mngr TEXT, distro TEXT, UNIQUE (mngr, distro));
",
);
match result {
@ -45,6 +44,17 @@ pub fn create_database() {
pub fn add_mngrs(pkg_managers: Vec<Vec<String>>, proper_manager: String) {
let connection = sqlite::open("/usr/share/pkg_warner/pkg_mngrs.db".to_string()).unwrap();
let result = connection.execute(format!(
"INSERT INTO pkg_mngrs (mngr,distro) VALUES (\"{}\",\"{}\")",
"proper_manager", proper_manager));
match result {
Ok(_) => {
println!("Added {} to database", proper_manager);
}
Err(_) => {
println!("Couldn't add {} to database, maybe it already exists?", proper_manager);
}
}
for entry in pkg_managers {
println!("Don't use {}! {} is used on {}, here you use {}!", entry[0], entry[0], entry[1], proper_manager);
let result = connection.execute(format!(
@ -57,7 +67,7 @@ pub fn add_mngrs(pkg_managers: Vec<Vec<String>>, proper_manager: String) {
println!("Added {} to database", entry[0]);
}
Err(_) => {
println!("Couldn't add {} to database", entry[0]);
println!("Couldn't add {} to database, maybe it already exists?", entry[0]);
}
}
}
@ -69,6 +79,7 @@ pub fn create_script() {
format!("SELECT mngr FROM pkg_mngrs WHERE mngr IS NOT \"proper_manager\";"),
|pairs| {
for &(_column, value) in pairs.iter() {
println!("{}", value.unwrap());
writeln!(&mut fs::File::create(format!("/usr/bin/{}",value.unwrap())).unwrap(), "#!/usr/bin/env bash\n pkg-warner -w {}", value.unwrap()).unwrap();
}
true
@ -81,6 +92,50 @@ pub fn create_script() {
}
pub fn dump_database() -> Vec<String> {
let connection = sqlite::open("/usr/share/pkg_warner/pkg_mngrs.db").unwrap();
let mut dump = Vec::new();
let result = connection.iterate(
format!("SELECT mngr FROM pkg_mngrs WHERE mngr IS NOT \"proper_manager\";"),
|pairs| {
for &(_column, value) in pairs.iter() {
dump.push(value.unwrap().to_string());
}
true
},
);
match result {
Ok(_) => {}
Err(_) => println!("Couldn't get value from database"),
}
return dump;
}
pub fn rem_mngr(mngrs_to_remove: Vec<String>) {
let connection = sqlite::open("/usr/share/pkg_warner/pkg_mngrs.db").unwrap();
for mngr in mngrs_to_remove {
let result = fs::remove_file(format!("/usr/bin/{}", mngr));
match result {
Ok(_) => {
println!("Removed {}", mngr);
}
Err(_) => {
println!("Couldn't remove {}", mngr);
}
}
let result = connection.execute(format!(
"DELETE FROM pkg_mngrs WHERE mngr = \"{}\"", mngr));
match result {
Ok(_) => {
println!("Removed {} from database", mngr);
}
Err(_) => {
println!("Couldn't remove {} from database", mngr);
}
}
}
}
pub fn warn(proper_manager: String, package_manager: String) {
let connection = sqlite::open("/usr/share/pkg_warner/pkg_mngrs.db".to_string()).unwrap();
let mut warned = false;
@ -123,35 +178,36 @@ fn main() {
}
let file = format!("/etc/package_managers.toml");
let mut database = String::new();
database = fs::read_to_string(file).expect("Unable to read file");
let database = fs::read_to_string(file).expect("Unable to read file");
let db_parsed = database.parse::<Value>().expect("Unable to parse database");
let mut pkg_managers: Vec<Vec<String>> = Vec::new();
let proper_manager = db_parsed["proper_manager"].as_str().unwrap().to_string();
for entry in db_parsed.as_table() {
for (key, value) in &*entry {
let mut tempvec = Vec::new();
tempvec.push(key.to_string());
tempvec.push(value.to_string().replace("distro = ", "").replace("\n","").replace("\"",""));
pkg_managers.push(tempvec);
if !tempvec.contains(&proper_manager) {
pkg_managers.push(tempvec);
}
}
}
let connection = sqlite::open("/usr/share/pkg_warner/pkg_mngrs.db").unwrap();
let mut proper_manager = String::new();
let mut found = false;
let result = connection.iterate(
format!("SELECT distro FROM pkg_mngrs WHERE mngr = \"proper_manager\";"),
|pairs| {
for &(_column, value) in pairs.iter() {
if !found {
proper_manager.push_str(value.unwrap());
found = true;
}
let dat_mgrs = dump_database();
let mut pkgs_to_remove: Vec<String> = Vec::new();
for i in dat_mgrs {
let mut in_conf = false;
for managers in &pkg_managers {
if managers.contains(&&i) {
in_conf = true;
}
true
},
);
}
if !in_conf {
pkgs_to_remove.push(i);
}
}
match oper.as_str() {
"-i" | "init" => {
create_database();
@ -167,6 +223,12 @@ fn main() {
"-w" | "warning" => {
warn(proper_manager, args[1].to_string());
}
"-r" | "remove" => {
if !pkgs_to_remove.is_empty() {
println!("Removing {} from database", pkgs_to_remove.join(", "));
rem_mngr(pkgs_to_remove);
}
}
_ => {
help();
}

@ -0,0 +1 @@
{"rustc_fingerprint":5477439701816288269,"outputs":{"2797684049618456168":{"success":false,"status":"exit status: 1","code":1,"stdout":"","stderr":"error: `-Csplit-debuginfo` is unstable on this platform\n\n"},"17598535894874457435":{"success":true,"status":"","code":0,"stdout":"rustc 1.56.1\nbinary: rustc\ncommit-hash: unknown\ncommit-date: unknown\nhost: x86_64-unknown-linux-gnu\nrelease: 1.56.1\nLLVM version: 13.0.0\n","stderr":""},"15537503139010883884":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n","stderr":""},"931469667778813386":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/nix/store/dmcb08cln9nlfacrfdzr176yhv1wwl9s-rustc-1.56.1\ndebug_assertions\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n","stderr":""}},"successes":{}}

@ -0,0 +1,3 @@
Signature: 8a477f597d28d172789f06886806bc55
# This file is a cache directory tag created by cargo.
# For information about cache directory tags see https://bford.info/cachedir/

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"[]","target":10236397793970852656,"profile":12637318739757120569,"path":15907198900034124300,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/autocfg-d0f3568de4ac8b4f/dep-lib-autocfg"}}],"rustflags":[],"metadata":13102859075309379048,"config":2202906307356721367,"compile_kind":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"[\"default\"]","target":7112745982619283648,"profile":3735503092003429423,"path":17193859861115388445,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/bitflags-0d597eea5c6c9299/dep-lib-bitflags"}}],"rustflags":[],"metadata":14564035643000669268,"config":2202906307356721367,"compile_kind":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"[]","target":2793076990717341772,"profile":12637318739757120569,"path":12492160900094230388,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/cc-b7b73ee25341f9d1/dep-lib-cc"}}],"rustflags":[],"metadata":16504835547841594983,"config":2202906307356721367,"compile_kind":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"[]","target":10094334937643343087,"profile":3735503092003429423,"path":1842211354858582184,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/cfg-if-01728933ff8322ec/dep-lib-cfg-if"}}],"rustflags":[],"metadata":8462187951337715540,"config":2202906307356721367,"compile_kind":0}

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"[\"default\", \"extra_traits\", \"std\"]","target":2709041430195671023,"profile":12637318739757120569,"path":1657727889642408025,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/libc-0153ac2f9c726b3a/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":14998826085014762512,"config":2202906307356721367,"compile_kind":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"","target":0,"profile":0,"path":0,"deps":[[4238752198363657571,"build_script_build",false,15235561580702698850]],"local":[{"RerunIfChanged":{"output":"debug/build/libc-875039f65e722711/output","paths":["build.rs"]}}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"[\"default\", \"extra_traits\", \"std\"]","target":15721753382687865320,"profile":3735503092003429423,"path":12860032275309791990,"deps":[[4238752198363657571,"build_script_build",false,10061379293649032420]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/libc-fb699e584894b098/dep-lib-libc"}}],"rustflags":[],"metadata":14998826085014762512,"config":2202906307356721367,"compile_kind":0}

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"","target":0,"profile":0,"path":0,"deps":[[6458888162066361806,"build_script_build",false,9534688773718435817]],"local":[{"Precalculated":"0.6.5"}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"[\"default\"]","target":16725475512136635640,"profile":3735503092003429423,"path":18064435451994845480,"deps":[[6458888162066361806,"build_script_build",false,12381127283113054918]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/memoffset-8c633a2205f68701/dep-lib-memoffset"}}],"rustflags":[],"metadata":1371205671251306698,"config":2202906307356721367,"compile_kind":0}

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"[\"default\"]","target":2709041430195671023,"profile":12637318739757120569,"path":9913201070585952670,"deps":[[12718412902330781859,"autocfg",false,14223038041160262990]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/memoffset-9911cd2d9b20ea8f/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":1371205671251306698,"config":2202906307356721367,"compile_kind":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"[]","target":5641809725606152361,"profile":3735503092003429423,"path":18313757918874396510,"deps":[[2452538001284770427,"cfg_if",false,1642500138308948845],[4238752198363657571,"libc",false,15707600569577458534],[6458888162066361806,"memoffset",false,15368230100397193875],[14051957667571541382,"bitflags",false,14489328798056692187]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/nix-70965ac305032031/dep-lib-nix"}}],"rustflags":[],"metadata":7592889295042356366,"config":2202906307356721367,"compile_kind":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"[]","target":6082314838881920084,"profile":12637318739757120569,"path":8901256983768991602,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/pkg-config-46002c4c55931941/dep-lib-pkg-config"}}],"rustflags":[],"metadata":6346311810227624339,"config":2202906307356721367,"compile_kind":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"[]","target":6118487853572589356,"profile":1021633075455700787,"path":1036222786711178230,"deps":[[4474423794295783571,"toml",false,13740282220423633566],[14281004470088548636,"nix",false,10038768611697567606],[14820404483268411614,"sqlite",false,6635522829886594309]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/pkg-warner-11f4f6dda71df57c/dep-test-bin-pkg-warner"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"[]","target":6118487853572589356,"profile":7309141686862299243,"path":1036222786711178230,"deps":[[4474423794295783571,"toml",false,13740282220423633566],[14281004470088548636,"nix",false,10038768611697567606],[14820404483268411614,"sqlite",false,6635522829886594309]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/pkg-warner-95de65d2baa42f48/dep-bin-pkg-warner"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"[\"default\", \"std\"]","target":15771919462364234457,"profile":3735503092003429423,"path":12176725181393656138,"deps":[[2736883952593840243,"build_script_build",false,15664705210452328843]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/serde-080ca2b3fd4c480c/dep-lib-serde"}}],"rustflags":[],"metadata":3767376778934503013,"config":2202906307356721367,"compile_kind":0}

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"","target":0,"profile":0,"path":0,"deps":[[2736883952593840243,"build_script_build",false,16749067537441452386]],"local":[{"Precalculated":"1.0.130"}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0}

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"[\"default\", \"std\"]","target":2709041430195671023,"profile":12637318739757120569,"path":8918499710304126694,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/serde-ae9a1e01cff47d82/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":3767376778934503013,"config":2202906307356721367,"compile_kind":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"[\"default\", \"linkage\"]","target":8136278550025260189,"profile":3735503092003429423,"path":7654351504928937179,"deps":[[4238752198363657571,"libc",false,15707600569577458534],[9359886142961491594,"sqlite3_sys",false,1462668660281886823]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/sqlite-54e35233c930c3a9/dep-lib-sqlite"}}],"rustflags":[],"metadata":3045830345976636886,"config":2202906307356721367,"compile_kind":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"[]","target":5789449429982314391,"profile":3735503092003429423,"path":13361965421518482827,"deps":[[10764015216467278682,"build_script_build",false,3960523353745970486]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/sqlite3-src-40cfe2480587bad9/dep-lib-sqlite3-src"}}],"rustflags":[],"metadata":357046978209590333,"config":2202906307356721367,"compile_kind":0}

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"","target":0,"profile":0,"path":0,"deps":[[10764015216467278682,"build_script_build",false,13150373422026264957]],"local":[{"RerunIfEnvChanged":{"var":"SQLITE3_NO_PKG_CONFIG","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_x86_64-unknown-linux-gnu","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_x86_64_unknown_linux_gnu","val":null}},{"RerunIfEnvChanged":{"var":"HOST_PKG_CONFIG","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG","val":null}},{"RerunIfEnvChanged":{"var":"SQLITE3_STATIC","val":null}},{"RerunIfEnvChanged":{"var":"SQLITE3_DYNAMIC","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_ALL_STATIC","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_ALL_DYNAMIC","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_PATH_x86_64-unknown-linux-gnu","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_PATH_x86_64_unknown_linux_gnu","val":null}},{"RerunIfEnvChanged":{"var":"HOST_PKG_CONFIG_PATH","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_PATH","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu","val":null}},{"RerunIfEnvChanged":{"var":"HOST_PKG_CONFIG_LIBDIR","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_LIBDIR","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu","val":null}},{"RerunIfEnvChanged":{"var":"HOST_PKG_CONFIG_SYSROOT_DIR","val":null}},{"RerunIfEnvChanged":{"var":"PKG_CONFIG_SYSROOT_DIR","val":null}}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0}

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"[]","target":2709041430195671023,"profile":12637318739757120569,"path":13523873326065766804,"deps":[[10048195576198893218,"pkg_config",false,101386704721739952],[10740982169257302999,"cc",false,897599313550182659]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/sqlite3-src-ed28aa5ca2ea29f3/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":357046978209590333,"config":2202906307356721367,"compile_kind":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"[\"linkage\", \"sqlite3-src\"]","target":13424289001282176565,"profile":3735503092003429423,"path":14777714684876047562,"deps":[[4238752198363657571,"libc",false,15707600569577458534],[10764015216467278682,"sqlite3_src",false,1822843640640844416]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/sqlite3-sys-62cae4fd1e27465c/dep-lib-sqlite3-sys"}}],"rustflags":[],"metadata":3932933143654036,"config":2202906307356721367,"compile_kind":0}

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1 @@
{"rustc":6373711192271157243,"features":"[\"default\"]","target":13462643144348829615,"profile":3735503092003429423,"path":13782765692360200938,"deps":[[2736883952593840243,"serde",false,5724849978742496119]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/toml-42e2df915f8b10a4/dep-lib-toml"}}],"rustflags":[],"metadata":15823223228428447826,"config":2202906307356721367,"compile_kind":0}

@ -0,0 +1,5 @@
/home/amy/crystal/pkg-manager-warner/target/debug/build/libc-0153ac2f9c726b3a/build_script_build-0153ac2f9c726b3a: /home/amy/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.109/build.rs
/home/amy/crystal/pkg-manager-warner/target/debug/build/libc-0153ac2f9c726b3a/build_script_build-0153ac2f9c726b3a.d: /home/amy/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.109/build.rs
/home/amy/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.109/build.rs:

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1,11 @@
cargo:rerun-if-changed=build.rs
cargo:rustc-cfg=freebsd11
cargo:rustc-cfg=libc_priv_mod_use
cargo:rustc-cfg=libc_union
cargo:rustc-cfg=libc_const_size_of
cargo:rustc-cfg=libc_align
cargo:rustc-cfg=libc_core_cvoid
cargo:rustc-cfg=libc_packedN
cargo:rustc-cfg=libc_cfg_target_vendor
cargo:rustc-cfg=libc_non_exhaustive
cargo:rustc-cfg=libc_ptr_addr_of

@ -0,0 +1 @@
/home/amy/crystal/pkg-manager-warner/target/debug/build/libc-875039f65e722711/out

@ -0,0 +1 @@
This file has an mtime of when this was started.

@ -0,0 +1,9 @@
; ModuleID = 'probe0.3041c4be-cgu.0'
source_filename = "probe0.3041c4be-cgu.0"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
!llvm.module.flags = !{!0, !1}
!0 = !{i32 7, !"PIC Level", i32 2}
!1 = !{i32 2, !"RtLibUseGOT", i32 1}

@ -0,0 +1,5 @@
cargo:rustc-cfg=tuple_ty
cargo:rustc-cfg=allow_clippy
cargo:rustc-cfg=maybe_uninit
cargo:rustc-cfg=doctests
cargo:rustc-cfg=raw_ref_macros

@ -0,0 +1 @@
/home/amy/crystal/pkg-manager-warner/target/debug/build/memoffset-1b94ae81ce5b9c8c/out

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save