diff --git a/ofborg/Cargo.nix b/ofborg/Cargo.nix index 99580f6..fe97389 100644 --- a/ofborg/Cargo.nix +++ b/ofborg/Cargo.nix @@ -1,189 +1,192 @@ -# Generated by carnix 0.9.2: carnix generate-nix --src . +# Generated by carnix 0.10.0: carnix generate-nix --src . { lib, buildPlatform, buildRustCrate, buildRustCrateHelpers, cratesIO, fetchgit }: with buildRustCrateHelpers; let inherit (lib.lists) fold; inherit (lib.attrsets) recursiveUpdate; in -let crates = cratesIO // rec { +rec { + crates = cratesIO // rec { # amqp-0.1.0 - crates.amqp."0.1.0" = deps: { features?(features_.amqp."0.1.0" deps {}) }: buildRustCrate { - crateName = "amqp"; - version = "0.1.0"; - authors = [ "Andrii Dmytrenko " ]; - src = fetchgit { - url = "https://github.com/grahamc/rust-amqp.git"; - rev = "f9aec2f40aef69a459f26003ce47048f8e2a08d1"; - sha256 = "09k6fl7l0rcwilnckdfv3smiv1ilrwi1jxmrrkjwbrj64lky3jdy"; - fetchSubmodules = false; + crates.amqp."0.1.0" = deps: { features?(features_.amqp."0.1.0" deps {}) }: buildRustCrate { + crateName = "amqp"; + version = "0.1.0"; + description = "AMQP/RabbitMQ protocol client"; + authors = [ "Andrii Dmytrenko " ]; + src = fetchgit { + url = "https://github.com/grahamc/rust-amqp.git"; + rev = "f9aec2f40aef69a459f26003ce47048f8e2a08d1"; + sha256 = "09k6fl7l0rcwilnckdfv3smiv1ilrwi1jxmrrkjwbrj64lky3jdy"; + fetchSubmodules = false; + }; + dependencies = mapFeatures features ([ + (cratesIO.crates."amq_proto"."${deps."amqp"."0.1.0"."amq_proto"}" deps) + (cratesIO.crates."env_logger"."${deps."amqp"."0.1.0"."env_logger"}" deps) + (cratesIO.crates."log"."${deps."amqp"."0.1.0"."log"}" deps) + (cratesIO.crates."time"."${deps."amqp"."0.1.0"."time"}" deps) + (cratesIO.crates."url"."${deps."amqp"."0.1.0"."url"}" deps) + ] + ++ (if features.amqp."0.1.0".openssl or false then [ (cratesIO.crates.openssl."${deps."amqp"."0.1.0".openssl}" deps) ] else [])); + features = mkFeatures (features."amqp"."0.1.0" or {}); }; - dependencies = mapFeatures features ([ - (cratesIO.crates."amq_proto"."${deps."amqp"."0.1.0"."amq_proto"}" deps) - (cratesIO.crates."env_logger"."${deps."amqp"."0.1.0"."env_logger"}" deps) - (cratesIO.crates."log"."${deps."amqp"."0.1.0"."log"}" deps) - (cratesIO.crates."time"."${deps."amqp"."0.1.0"."time"}" deps) - (cratesIO.crates."url"."${deps."amqp"."0.1.0"."url"}" deps) - ] - ++ (if features.amqp."0.1.0".openssl or false then [ (cratesIO.crates.openssl."${deps."amqp"."0.1.0".openssl}" deps) ] else [])); - features = mkFeatures (features."amqp"."0.1.0" or {}); - }; - features_.amqp."0.1.0" = deps: f: updateFeatures f (rec { - amq_proto."${deps.amqp."0.1.0".amq_proto}".default = true; - amqp = fold recursiveUpdate {} [ - { "0.1.0".default = (f.amqp."0.1.0".default or true); } - { "0.1.0".openssl = - (f.amqp."0.1.0".openssl or false) || - (f.amqp."0.1.0".tls or false) || - (amqp."0.1.0"."tls" or false); } - { "0.1.0".tls = - (f.amqp."0.1.0".tls or false) || - (f.amqp."0.1.0".default or false) || - (amqp."0.1.0"."default" or false); } + features_.amqp."0.1.0" = deps: f: updateFeatures f (rec { + amq_proto."${deps.amqp."0.1.0".amq_proto}".default = true; + amqp = fold recursiveUpdate {} [ + { "0.1.0"."openssl" = + (f.amqp."0.1.0"."openssl" or false) || + (f.amqp."0.1.0".tls or false) || + (amqp."0.1.0"."tls" or false); } + { "0.1.0"."tls" = + (f.amqp."0.1.0"."tls" or false) || + (f.amqp."0.1.0".default or false) || + (amqp."0.1.0"."default" or false); } + { "0.1.0".default = (f.amqp."0.1.0".default or true); } + ]; + env_logger."${deps.amqp."0.1.0".env_logger}".default = true; + log."${deps.amqp."0.1.0".log}".default = true; + openssl."${deps.amqp."0.1.0".openssl}".default = true; + time."${deps.amqp."0.1.0".time}".default = true; + url."${deps.amqp."0.1.0".url}".default = true; + }) [ + (cratesIO.features_.amq_proto."${deps."amqp"."0.1.0"."amq_proto"}" deps) + (cratesIO.features_.env_logger."${deps."amqp"."0.1.0"."env_logger"}" deps) + (cratesIO.features_.log."${deps."amqp"."0.1.0"."log"}" deps) + (cratesIO.features_.openssl."${deps."amqp"."0.1.0"."openssl"}" deps) + (cratesIO.features_.time."${deps."amqp"."0.1.0"."time"}" deps) + (cratesIO.features_.url."${deps."amqp"."0.1.0"."url"}" deps) ]; - env_logger."${deps.amqp."0.1.0".env_logger}".default = true; - log."${deps.amqp."0.1.0".log}".default = true; - openssl."${deps.amqp."0.1.0".openssl}".default = true; - time."${deps.amqp."0.1.0".time}".default = true; - url."${deps.amqp."0.1.0".url}".default = true; - }) [ - (cratesIO.features_.amq_proto."${deps."amqp"."0.1.0"."amq_proto"}" deps) - (cratesIO.features_.env_logger."${deps."amqp"."0.1.0"."env_logger"}" deps) - (cratesIO.features_.log."${deps."amqp"."0.1.0"."log"}" deps) - (cratesIO.features_.openssl."${deps."amqp"."0.1.0"."openssl"}" deps) - (cratesIO.features_.time."${deps."amqp"."0.1.0"."time"}" deps) - (cratesIO.features_.url."${deps."amqp"."0.1.0"."url"}" deps) - ]; # end # hubcaps-0.3.16 - crates.hubcaps."0.3.16" = deps: { features?(features_.hubcaps."0.3.16" deps {}) }: buildRustCrate { - crateName = "hubcaps"; - version = "0.3.16"; - authors = [ "softprops " ]; - src = fetchgit { - url = "https://github.com/grahamc/hubcaps.git"; - rev = "1c5da1e60ee2d0d69188d83da048e7328aae05b9"; - sha256 = "0s8ralkinvcjs5cnl2iar0hzwa1k16b7a0n24fw5dx9fqcykm4ya"; - fetchSubmodules = false; + crates.hubcaps."0.3.16" = deps: { features?(features_.hubcaps."0.3.16" deps {}) }: buildRustCrate { + crateName = "hubcaps"; + version = "0.3.16"; + description = "Rust interface for Github"; + authors = [ "softprops " ]; + src = fetchgit { + url = "https://github.com/grahamc/hubcaps.git"; + rev = "1c5da1e60ee2d0d69188d83da048e7328aae05b9"; + sha256 = "0s8ralkinvcjs5cnl2iar0hzwa1k16b7a0n24fw5dx9fqcykm4ya"; + fetchSubmodules = false; + }; + dependencies = mapFeatures features ([ + (cratesIO.crates."error_chain"."${deps."hubcaps"."0.3.16"."error_chain"}" deps) + (cratesIO.crates."frank_jwt"."${deps."hubcaps"."0.3.16"."frank_jwt"}" deps) + (cratesIO.crates."hyper"."${deps."hubcaps"."0.3.16"."hyper"}" deps) + (cratesIO.crates."log"."${deps."hubcaps"."0.3.16"."log"}" deps) + (cratesIO.crates."serde"."${deps."hubcaps"."0.3.16"."serde"}" deps) + (cratesIO.crates."serde_derive"."${deps."hubcaps"."0.3.16"."serde_derive"}" deps) + (cratesIO.crates."serde_json"."${deps."hubcaps"."0.3.16"."serde_json"}" deps) + (cratesIO.crates."url"."${deps."hubcaps"."0.3.16"."url"}" deps) + ]); }; - dependencies = mapFeatures features ([ - (cratesIO.crates."error_chain"."${deps."hubcaps"."0.3.16"."error_chain"}" deps) - (cratesIO.crates."frank_jwt"."${deps."hubcaps"."0.3.16"."frank_jwt"}" deps) - (cratesIO.crates."hyper"."${deps."hubcaps"."0.3.16"."hyper"}" deps) - (cratesIO.crates."log"."${deps."hubcaps"."0.3.16"."log"}" deps) - (cratesIO.crates."serde"."${deps."hubcaps"."0.3.16"."serde"}" deps) - (cratesIO.crates."serde_derive"."${deps."hubcaps"."0.3.16"."serde_derive"}" deps) - (cratesIO.crates."serde_json"."${deps."hubcaps"."0.3.16"."serde_json"}" deps) - (cratesIO.crates."url"."${deps."hubcaps"."0.3.16"."url"}" deps) - ]); - }; - features_.hubcaps."0.3.16" = deps: f: updateFeatures f (rec { - error_chain."${deps.hubcaps."0.3.16".error_chain}".default = true; - frank_jwt."${deps.hubcaps."0.3.16".frank_jwt}".default = true; - hubcaps."0.3.16".default = (f.hubcaps."0.3.16".default or true); - hyper."${deps.hubcaps."0.3.16".hyper}".default = true; - log."${deps.hubcaps."0.3.16".log}".default = true; - serde."${deps.hubcaps."0.3.16".serde}".default = true; - serde_derive."${deps.hubcaps."0.3.16".serde_derive}".default = true; - serde_json."${deps.hubcaps."0.3.16".serde_json}".default = true; - url."${deps.hubcaps."0.3.16".url}".default = true; - }) [ - (cratesIO.features_.error_chain."${deps."hubcaps"."0.3.16"."error_chain"}" deps) - (cratesIO.features_.frank_jwt."${deps."hubcaps"."0.3.16"."frank_jwt"}" deps) - (cratesIO.features_.hyper."${deps."hubcaps"."0.3.16"."hyper"}" deps) - (cratesIO.features_.log."${deps."hubcaps"."0.3.16"."log"}" deps) - (cratesIO.features_.serde."${deps."hubcaps"."0.3.16"."serde"}" deps) - (cratesIO.features_.serde_derive."${deps."hubcaps"."0.3.16"."serde_derive"}" deps) - (cratesIO.features_.serde_json."${deps."hubcaps"."0.3.16"."serde_json"}" deps) - (cratesIO.features_.url."${deps."hubcaps"."0.3.16"."url"}" deps) - ]; + features_.hubcaps."0.3.16" = deps: f: updateFeatures f (rec { + error_chain."${deps.hubcaps."0.3.16".error_chain}".default = true; + frank_jwt."${deps.hubcaps."0.3.16".frank_jwt}".default = true; + hubcaps."0.3.16".default = (f.hubcaps."0.3.16".default or true); + hyper."${deps.hubcaps."0.3.16".hyper}".default = true; + log."${deps.hubcaps."0.3.16".log}".default = true; + serde."${deps.hubcaps."0.3.16".serde}".default = true; + serde_derive."${deps.hubcaps."0.3.16".serde_derive}".default = true; + serde_json."${deps.hubcaps."0.3.16".serde_json}".default = true; + url."${deps.hubcaps."0.3.16".url}".default = true; + }) [ + (cratesIO.features_.error_chain."${deps."hubcaps"."0.3.16"."error_chain"}" deps) + (cratesIO.features_.frank_jwt."${deps."hubcaps"."0.3.16"."frank_jwt"}" deps) + (cratesIO.features_.hyper."${deps."hubcaps"."0.3.16"."hyper"}" deps) + (cratesIO.features_.log."${deps."hubcaps"."0.3.16"."log"}" deps) + (cratesIO.features_.serde."${deps."hubcaps"."0.3.16"."serde"}" deps) + (cratesIO.features_.serde_derive."${deps."hubcaps"."0.3.16"."serde_derive"}" deps) + (cratesIO.features_.serde_json."${deps."hubcaps"."0.3.16"."serde_json"}" deps) + (cratesIO.features_.url."${deps."hubcaps"."0.3.16"."url"}" deps) + ]; # end # ofborg-0.1.8 - crates.ofborg."0.1.8" = deps: { features?(features_.ofborg."0.1.8" deps {}) }: buildRustCrate { - crateName = "ofborg"; - version = "0.1.8"; - authors = [ "Graham Christensen " ]; - src = include [ "Cargo.toml" "Cargo.lock" "src" "test-srcs" "build.rs" ] ./.; - build = "build.rs"; - dependencies = mapFeatures features ([ - (crates."amqp"."${deps."ofborg"."0.1.8"."amqp"}" deps) - (cratesIO.crates."chrono"."${deps."ofborg"."0.1.8"."chrono"}" deps) - (cratesIO.crates."either"."${deps."ofborg"."0.1.8"."either"}" deps) - (cratesIO.crates."env_logger"."${deps."ofborg"."0.1.8"."env_logger"}" deps) - (cratesIO.crates."fs2"."${deps."ofborg"."0.1.8"."fs2"}" deps) - (crates."hubcaps"."${deps."ofborg"."0.1.8"."hubcaps"}" deps) - (cratesIO.crates."hyper"."${deps."ofborg"."0.1.8"."hyper"}" deps) - (cratesIO.crates."hyper_native_tls"."${deps."ofborg"."0.1.8"."hyper_native_tls"}" deps) - (cratesIO.crates."log"."${deps."ofborg"."0.1.8"."log"}" deps) - (cratesIO.crates."lru_cache"."${deps."ofborg"."0.1.8"."lru_cache"}" deps) - (cratesIO.crates."md5"."${deps."ofborg"."0.1.8"."md5"}" deps) - (cratesIO.crates."nom"."${deps."ofborg"."0.1.8"."nom"}" deps) - (cratesIO.crates."separator"."${deps."ofborg"."0.1.8"."separator"}" deps) - (cratesIO.crates."serde"."${deps."ofborg"."0.1.8"."serde"}" deps) - (cratesIO.crates."serde_derive"."${deps."ofborg"."0.1.8"."serde_derive"}" deps) - (cratesIO.crates."serde_json"."${deps."ofborg"."0.1.8"."serde_json"}" deps) - (cratesIO.crates."sys_info"."${deps."ofborg"."0.1.8"."sys_info"}" deps) - (cratesIO.crates."tempfile"."${deps."ofborg"."0.1.8"."tempfile"}" deps) - (cratesIO.crates."uuid"."${deps."ofborg"."0.1.8"."uuid"}" deps) - ]); - }; - features_.ofborg."0.1.8" = deps: f: updateFeatures f (rec { - amqp."${deps.ofborg."0.1.8".amqp}".default = true; - chrono."${deps.ofborg."0.1.8".chrono}".default = true; - either."${deps.ofborg."0.1.8".either}".default = true; - env_logger."${deps.ofborg."0.1.8".env_logger}".default = true; - fs2."${deps.ofborg."0.1.8".fs2}".default = true; - hubcaps."${deps.ofborg."0.1.8".hubcaps}".default = true; - hyper."${deps.ofborg."0.1.8".hyper}".default = true; - hyper_native_tls."${deps.ofborg."0.1.8".hyper_native_tls}".default = true; - log."${deps.ofborg."0.1.8".log}".default = true; - lru_cache."${deps.ofborg."0.1.8".lru_cache}".default = true; - md5."${deps.ofborg."0.1.8".md5}".default = true; - nom."${deps.ofborg."0.1.8".nom}".default = true; - ofborg."0.1.8".default = (f.ofborg."0.1.8".default or true); - separator."${deps.ofborg."0.1.8".separator}".default = true; - serde."${deps.ofborg."0.1.8".serde}".default = true; - serde_derive."${deps.ofborg."0.1.8".serde_derive}".default = true; - serde_json."${deps.ofborg."0.1.8".serde_json}".default = true; - sys_info."${deps.ofborg."0.1.8".sys_info}".default = true; - tempfile."${deps.ofborg."0.1.8".tempfile}".default = true; - uuid = fold recursiveUpdate {} [ - { "${deps.ofborg."0.1.8".uuid}"."v4" = true; } - { "${deps.ofborg."0.1.8".uuid}".default = true; } + crates.ofborg."0.1.8" = deps: { features?(features_.ofborg."0.1.8" deps {}) }: buildRustCrate { + crateName = "ofborg"; + version = "0.1.8"; + authors = [ "Graham Christensen " ]; + edition = "2018"; + src = include [ "Cargo.toml" "Cargo.lock" "src" "test-srcs" "build.rs" ] ./.; + build = "build.rs"; + dependencies = mapFeatures features ([ + (crates."amqp"."${deps."ofborg"."0.1.8"."amqp"}" deps) + (cratesIO.crates."chrono"."${deps."ofborg"."0.1.8"."chrono"}" deps) + (cratesIO.crates."either"."${deps."ofborg"."0.1.8"."either"}" deps) + (cratesIO.crates."env_logger"."${deps."ofborg"."0.1.8"."env_logger"}" deps) + (cratesIO.crates."fs2"."${deps."ofborg"."0.1.8"."fs2"}" deps) + (crates."hubcaps"."${deps."ofborg"."0.1.8"."hubcaps"}" deps) + (cratesIO.crates."hyper"."${deps."ofborg"."0.1.8"."hyper"}" deps) + (cratesIO.crates."hyper_native_tls"."${deps."ofborg"."0.1.8"."hyper_native_tls"}" deps) + (cratesIO.crates."log"."${deps."ofborg"."0.1.8"."log"}" deps) + (cratesIO.crates."lru_cache"."${deps."ofborg"."0.1.8"."lru_cache"}" deps) + (cratesIO.crates."md5"."${deps."ofborg"."0.1.8"."md5"}" deps) + (cratesIO.crates."nom"."${deps."ofborg"."0.1.8"."nom"}" deps) + (cratesIO.crates."separator"."${deps."ofborg"."0.1.8"."separator"}" deps) + (cratesIO.crates."serde"."${deps."ofborg"."0.1.8"."serde"}" deps) + (cratesIO.crates."serde_derive"."${deps."ofborg"."0.1.8"."serde_derive"}" deps) + (cratesIO.crates."serde_json"."${deps."ofborg"."0.1.8"."serde_json"}" deps) + (cratesIO.crates."sys_info"."${deps."ofborg"."0.1.8"."sys_info"}" deps) + (cratesIO.crates."tempfile"."${deps."ofborg"."0.1.8"."tempfile"}" deps) + (cratesIO.crates."uuid"."${deps."ofborg"."0.1.8"."uuid"}" deps) + ]); + }; + features_.ofborg."0.1.8" = deps: f: updateFeatures f (rec { + amqp."${deps.ofborg."0.1.8".amqp}".default = true; + chrono."${deps.ofborg."0.1.8".chrono}".default = true; + either."${deps.ofborg."0.1.8".either}".default = true; + env_logger."${deps.ofborg."0.1.8".env_logger}".default = true; + fs2."${deps.ofborg."0.1.8".fs2}".default = true; + hubcaps."${deps.ofborg."0.1.8".hubcaps}".default = true; + hyper."${deps.ofborg."0.1.8".hyper}".default = true; + hyper_native_tls."${deps.ofborg."0.1.8".hyper_native_tls}".default = true; + log."${deps.ofborg."0.1.8".log}".default = true; + lru_cache."${deps.ofborg."0.1.8".lru_cache}".default = true; + md5."${deps.ofborg."0.1.8".md5}".default = true; + nom."${deps.ofborg."0.1.8".nom}".default = true; + ofborg."0.1.8".default = (f.ofborg."0.1.8".default or true); + separator."${deps.ofborg."0.1.8".separator}".default = true; + serde."${deps.ofborg."0.1.8".serde}".default = true; + serde_derive."${deps.ofborg."0.1.8".serde_derive}".default = true; + serde_json."${deps.ofborg."0.1.8".serde_json}".default = true; + sys_info."${deps.ofborg."0.1.8".sys_info}".default = true; + tempfile."${deps.ofborg."0.1.8".tempfile}".default = true; + uuid = fold recursiveUpdate {} [ + { "${deps.ofborg."0.1.8".uuid}"."v4" = true; } + { "${deps.ofborg."0.1.8".uuid}".default = true; } + ]; + }) [ + (features_.amqp."${deps."ofborg"."0.1.8"."amqp"}" deps) + (cratesIO.features_.chrono."${deps."ofborg"."0.1.8"."chrono"}" deps) + (cratesIO.features_.either."${deps."ofborg"."0.1.8"."either"}" deps) + (cratesIO.features_.env_logger."${deps."ofborg"."0.1.8"."env_logger"}" deps) + (cratesIO.features_.fs2."${deps."ofborg"."0.1.8"."fs2"}" deps) + (features_.hubcaps."${deps."ofborg"."0.1.8"."hubcaps"}" deps) + (cratesIO.features_.hyper."${deps."ofborg"."0.1.8"."hyper"}" deps) + (cratesIO.features_.hyper_native_tls."${deps."ofborg"."0.1.8"."hyper_native_tls"}" deps) + (cratesIO.features_.log."${deps."ofborg"."0.1.8"."log"}" deps) + (cratesIO.features_.lru_cache."${deps."ofborg"."0.1.8"."lru_cache"}" deps) + (cratesIO.features_.md5."${deps."ofborg"."0.1.8"."md5"}" deps) + (cratesIO.features_.nom."${deps."ofborg"."0.1.8"."nom"}" deps) + (cratesIO.features_.separator."${deps."ofborg"."0.1.8"."separator"}" deps) + (cratesIO.features_.serde."${deps."ofborg"."0.1.8"."serde"}" deps) + (cratesIO.features_.serde_derive."${deps."ofborg"."0.1.8"."serde_derive"}" deps) + (cratesIO.features_.serde_json."${deps."ofborg"."0.1.8"."serde_json"}" deps) + (cratesIO.features_.sys_info."${deps."ofborg"."0.1.8"."sys_info"}" deps) + (cratesIO.features_.tempfile."${deps."ofborg"."0.1.8"."tempfile"}" deps) + (cratesIO.features_.uuid."${deps."ofborg"."0.1.8"."uuid"}" deps) ]; - }) [ - (features_.amqp."${deps."ofborg"."0.1.8"."amqp"}" deps) - (cratesIO.features_.chrono."${deps."ofborg"."0.1.8"."chrono"}" deps) - (cratesIO.features_.either."${deps."ofborg"."0.1.8"."either"}" deps) - (cratesIO.features_.env_logger."${deps."ofborg"."0.1.8"."env_logger"}" deps) - (cratesIO.features_.fs2."${deps."ofborg"."0.1.8"."fs2"}" deps) - (features_.hubcaps."${deps."ofborg"."0.1.8"."hubcaps"}" deps) - (cratesIO.features_.hyper."${deps."ofborg"."0.1.8"."hyper"}" deps) - (cratesIO.features_.hyper_native_tls."${deps."ofborg"."0.1.8"."hyper_native_tls"}" deps) - (cratesIO.features_.log."${deps."ofborg"."0.1.8"."log"}" deps) - (cratesIO.features_.lru_cache."${deps."ofborg"."0.1.8"."lru_cache"}" deps) - (cratesIO.features_.md5."${deps."ofborg"."0.1.8"."md5"}" deps) - (cratesIO.features_.nom."${deps."ofborg"."0.1.8"."nom"}" deps) - (cratesIO.features_.separator."${deps."ofborg"."0.1.8"."separator"}" deps) - (cratesIO.features_.serde."${deps."ofborg"."0.1.8"."serde"}" deps) - (cratesIO.features_.serde_derive."${deps."ofborg"."0.1.8"."serde_derive"}" deps) - (cratesIO.features_.serde_json."${deps."ofborg"."0.1.8"."serde_json"}" deps) - (cratesIO.features_.sys_info."${deps."ofborg"."0.1.8"."sys_info"}" deps) - (cratesIO.features_.tempfile."${deps."ofborg"."0.1.8"."tempfile"}" deps) - (cratesIO.features_.uuid."${deps."ofborg"."0.1.8"."uuid"}" deps) - ]; # end -}; in + }; -rec { ofborg = crates.crates.ofborg."0.1.8" deps; __all = [ (ofborg {}) ]; deps.aho_corasick."0.5.3" = { diff --git a/ofborg/Cargo.toml b/ofborg/Cargo.toml index 07015c1..db55092 100644 --- a/ofborg/Cargo.toml +++ b/ofborg/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.8" authors = ["Graham Christensen "] include = ["Cargo.toml", "Cargo.lock", "src", "test-srcs", "build.rs"] build = "build.rs" - +edition = "2018" [dependencies] either = "1.4.0" diff --git a/ofborg/crates-io.nix b/ofborg/crates-io.nix index 47f5772..797a036 100644 --- a/ofborg/crates-io.nix +++ b/ofborg/crates-io.nix @@ -10,6 +10,7 @@ rec { crates.aho_corasick."0.5.3" = deps: { features?(features_.aho_corasick."0.5.3" deps {}) }: buildRustCrate { crateName = "aho-corasick"; version = "0.5.3"; + description = "Fast multiple substring searching with finite state machines."; authors = [ "Andrew Gallant " ]; sha256 = "1igab46mvgknga3sxkqc917yfff0wsjxjzabdigmh240p5qxqlnn"; libName = "aho_corasick"; @@ -33,6 +34,7 @@ rec { crates.aho_corasick."0.6.9" = deps: { features?(features_.aho_corasick."0.6.9" deps {}) }: buildRustCrate { crateName = "aho-corasick"; version = "0.6.9"; + description = "Fast multiple substring searching with finite state machines."; authors = [ "Andrew Gallant " ]; sha256 = "1lj20py6bvw3y7m9n2nqh0mkshfl1kjfp72lfika9gpkrp2r204l"; libName = "aho_corasick"; @@ -56,6 +58,7 @@ rec { crates.amq_proto."0.1.0" = deps: { features?(features_.amq_proto."0.1.0" deps {}) }: buildRustCrate { crateName = "amq-proto"; version = "0.1.0"; + description = "AMQP/RabbitMQ protocol implementation"; authors = [ "Andrii Dmytrenko " ]; sha256 = "0333fsph61q9nxbx6h8hdxjmpabjm9vmsfc6q5agy801x35r4ml9"; dependencies = mapFeatures features ([ @@ -91,6 +94,7 @@ rec { crates.antidote."1.0.0" = deps: { features?(features_.antidote."1.0.0" deps {}) }: buildRustCrate { crateName = "antidote"; version = "1.0.0"; + description = "Poison-free versions of the standard library Mutex and RwLock types"; authors = [ "Steven Fackler " ]; sha256 = "1x2wgaw603jcjwsfvc8s2rpaqjv0aqj8mvws2ahhkvfnwkdf7icw"; }; @@ -105,6 +109,7 @@ rec { crates.autocfg."0.1.1" = deps: { features?(features_.autocfg."0.1.1" deps {}) }: buildRustCrate { crateName = "autocfg"; version = "0.1.1"; + description = "Automatic cfg for Rust compiler features"; authors = [ "Josh Stone " ]; sha256 = "0pzhbmwg46y04n89vn8yi0z1q8m3yh9gmfi8b9wn72zwk60f1rx2"; }; @@ -119,6 +124,7 @@ rec { crates.backtrace."0.3.13" = deps: { features?(features_.backtrace."0.3.13" deps {}) }: buildRustCrate { crateName = "backtrace"; version = "0.3.13"; + description = "A library to acquire a stack trace (backtrace) at runtime in a Rust program.\n"; authors = [ "Alex Crichton " "The Rust Project Developers" ]; sha256 = "1xx0vjdih9zqj6vp8l69n0f213wmif5471prgpkp24jbzxndvb1v"; dependencies = mapFeatures features ([ @@ -143,69 +149,69 @@ rec { features_.backtrace."0.3.13" = deps: f: updateFeatures f (rec { autocfg."${deps.backtrace."0.3.13".autocfg}".default = true; backtrace = fold recursiveUpdate {} [ - { "0.3.13".addr2line = - (f.backtrace."0.3.13".addr2line or false) || + { "0.3.13"."addr2line" = + (f.backtrace."0.3.13"."addr2line" or false) || (f.backtrace."0.3.13".gimli-symbolize or false) || (backtrace."0.3.13"."gimli-symbolize" or false); } - { "0.3.13".backtrace-sys = - (f.backtrace."0.3.13".backtrace-sys or false) || + { "0.3.13"."backtrace-sys" = + (f.backtrace."0.3.13"."backtrace-sys" or false) || (f.backtrace."0.3.13".libbacktrace or false) || (backtrace."0.3.13"."libbacktrace" or false); } - { "0.3.13".coresymbolication = - (f.backtrace."0.3.13".coresymbolication or false) || + { "0.3.13"."coresymbolication" = + (f.backtrace."0.3.13"."coresymbolication" or false) || (f.backtrace."0.3.13".default or false) || (backtrace."0.3.13"."default" or false); } - { "0.3.13".dbghelp = - (f.backtrace."0.3.13".dbghelp or false) || + { "0.3.13"."dbghelp" = + (f.backtrace."0.3.13"."dbghelp" or false) || (f.backtrace."0.3.13".default or false) || (backtrace."0.3.13"."default" or false); } - { "0.3.13".default = (f.backtrace."0.3.13".default or true); } - { "0.3.13".dladdr = - (f.backtrace."0.3.13".dladdr or false) || + { "0.3.13"."dladdr" = + (f.backtrace."0.3.13"."dladdr" or false) || (f.backtrace."0.3.13".default or false) || (backtrace."0.3.13"."default" or false); } - { "0.3.13".findshlibs = - (f.backtrace."0.3.13".findshlibs or false) || + { "0.3.13"."findshlibs" = + (f.backtrace."0.3.13"."findshlibs" or false) || (f.backtrace."0.3.13".gimli-symbolize or false) || (backtrace."0.3.13"."gimli-symbolize" or false); } - { "0.3.13".gimli = - (f.backtrace."0.3.13".gimli or false) || + { "0.3.13"."gimli" = + (f.backtrace."0.3.13"."gimli" or false) || (f.backtrace."0.3.13".gimli-symbolize or false) || (backtrace."0.3.13"."gimli-symbolize" or false); } - { "0.3.13".libbacktrace = - (f.backtrace."0.3.13".libbacktrace or false) || + { "0.3.13"."libbacktrace" = + (f.backtrace."0.3.13"."libbacktrace" or false) || (f.backtrace."0.3.13".default or false) || (backtrace."0.3.13"."default" or false); } - { "0.3.13".libunwind = - (f.backtrace."0.3.13".libunwind or false) || + { "0.3.13"."libunwind" = + (f.backtrace."0.3.13"."libunwind" or false) || (f.backtrace."0.3.13".default or false) || (backtrace."0.3.13"."default" or false); } - { "0.3.13".memmap = - (f.backtrace."0.3.13".memmap or false) || + { "0.3.13"."memmap" = + (f.backtrace."0.3.13"."memmap" or false) || (f.backtrace."0.3.13".gimli-symbolize or false) || (backtrace."0.3.13"."gimli-symbolize" or false); } - { "0.3.13".object = - (f.backtrace."0.3.13".object or false) || + { "0.3.13"."object" = + (f.backtrace."0.3.13"."object" or false) || (f.backtrace."0.3.13".gimli-symbolize or false) || (backtrace."0.3.13"."gimli-symbolize" or false); } - { "0.3.13".rustc-serialize = - (f.backtrace."0.3.13".rustc-serialize or false) || + { "0.3.13"."rustc-serialize" = + (f.backtrace."0.3.13"."rustc-serialize" or false) || (f.backtrace."0.3.13".serialize-rustc or false) || (backtrace."0.3.13"."serialize-rustc" or false); } - { "0.3.13".serde = - (f.backtrace."0.3.13".serde or false) || + { "0.3.13"."serde" = + (f.backtrace."0.3.13"."serde" or false) || (f.backtrace."0.3.13".serialize-serde or false) || (backtrace."0.3.13"."serialize-serde" or false); } - { "0.3.13".serde_derive = - (f.backtrace."0.3.13".serde_derive or false) || + { "0.3.13"."serde_derive" = + (f.backtrace."0.3.13"."serde_derive" or false) || (f.backtrace."0.3.13".serialize-serde or false) || (backtrace."0.3.13"."serialize-serde" or false); } - { "0.3.13".std = - (f.backtrace."0.3.13".std or false) || + { "0.3.13"."std" = + (f.backtrace."0.3.13"."std" or false) || (f.backtrace."0.3.13".default or false) || (backtrace."0.3.13"."default" or false) || (f.backtrace."0.3.13".libbacktrace or false) || (backtrace."0.3.13"."libbacktrace" or false); } + { "0.3.13".default = (f.backtrace."0.3.13".default or true); } ]; backtrace_sys."${deps.backtrace."0.3.13".backtrace_sys}".default = true; cfg_if."${deps.backtrace."0.3.13".cfg_if}".default = true; @@ -234,6 +240,7 @@ rec { crates.backtrace_sys."0.1.28" = deps: { features?(features_.backtrace_sys."0.1.28" deps {}) }: buildRustCrate { crateName = "backtrace-sys"; version = "0.1.28"; + description = "Bindings to the libbacktrace gcc library\n"; authors = [ "Alex Crichton " ]; sha256 = "1bbw8chs0wskxwzz7f3yy7mjqhyqj8lslq8pcjw1rbd2g23c34xl"; build = "build.rs"; @@ -261,6 +268,7 @@ rec { crates.base64."0.9.3" = deps: { features?(features_.base64."0.9.3" deps {}) }: buildRustCrate { crateName = "base64"; version = "0.9.3"; + description = "encodes and decodes base64 as bytes or utf8"; authors = [ "Alice Maz " "Marshall Pierce " ]; sha256 = "11hhz8ln4zbpn2h2gm9fbbb9j254wrd4fpmddlyah2rrnqsmmqkd"; dependencies = mapFeatures features ([ @@ -284,6 +292,7 @@ rec { crates.base64."0.10.0" = deps: { features?(features_.base64."0.10.0" deps {}) }: buildRustCrate { crateName = "base64"; version = "0.10.0"; + description = "encodes and decodes base64 as bytes or utf8"; authors = [ "Alice Maz " "Marshall Pierce " ]; sha256 = "1h9pfgvdl40d1l5hlrb5fg8rqkl86hz07i22vgdcpjbissw8sisj"; dependencies = mapFeatures features ([ @@ -304,6 +313,7 @@ rec { crates.bit_vec."0.4.4" = deps: { features?(features_.bit_vec."0.4.4" deps {}) }: buildRustCrate { crateName = "bit-vec"; version = "0.4.4"; + description = "A vector of bits"; authors = [ "Alexis Beingessner " ]; sha256 = "06czykmn001z6c3a4nsrpc3lrj63ga0kzp7kgva9r9wylhkkqpq9"; features = mkFeatures (features."bit_vec"."0.4.4" or {}); @@ -319,17 +329,18 @@ rec { crates.bitflags."0.9.1" = deps: { features?(features_.bitflags."0.9.1" deps {}) }: buildRustCrate { crateName = "bitflags"; version = "0.9.1"; + description = "A macro to generate structures which behave like bitflags.\n"; authors = [ "The Rust Project Developers" ]; sha256 = "18h073l5jd88rx4qdr95fjddr9rk79pb1aqnshzdnw16cfmb9rws"; features = mkFeatures (features."bitflags"."0.9.1" or {}); }; features_.bitflags."0.9.1" = deps: f: updateFeatures f (rec { bitflags = fold recursiveUpdate {} [ - { "0.9.1".default = (f.bitflags."0.9.1".default or true); } - { "0.9.1".example_generated = - (f.bitflags."0.9.1".example_generated or false) || + { "0.9.1"."example_generated" = + (f.bitflags."0.9.1"."example_generated" or false) || (f.bitflags."0.9.1".default or false) || (bitflags."0.9.1"."default" or false); } + { "0.9.1".default = (f.bitflags."0.9.1".default or true); } ]; }) []; @@ -340,6 +351,7 @@ rec { crates.bitflags."1.0.4" = deps: { features?(features_.bitflags."1.0.4" deps {}) }: buildRustCrate { crateName = "bitflags"; version = "1.0.4"; + description = "A macro to generate structures which behave like bitflags.\n"; authors = [ "The Rust Project Developers" ]; sha256 = "1g1wmz2001qmfrd37dnd5qiss5njrw26aywmg6yhkmkbyrhjxb08"; features = mkFeatures (features."bitflags"."1.0.4" or {}); @@ -355,17 +367,18 @@ rec { crates.byteorder."0.5.3" = deps: { features?(features_.byteorder."0.5.3" deps {}) }: buildRustCrate { crateName = "byteorder"; version = "0.5.3"; + description = "Library for reading/writing numbers in big-endian and little-endian."; authors = [ "Andrew Gallant " ]; sha256 = "0zsr6b0m0yl5c0yy92nq7srfpczd1dx1xqcx3rlm5fbl8si9clqx"; features = mkFeatures (features."byteorder"."0.5.3" or {}); }; features_.byteorder."0.5.3" = deps: f: updateFeatures f (rec { byteorder = fold recursiveUpdate {} [ - { "0.5.3".default = (f.byteorder."0.5.3".default or true); } - { "0.5.3".std = - (f.byteorder."0.5.3".std or false) || + { "0.5.3"."std" = + (f.byteorder."0.5.3"."std" or false) || (f.byteorder."0.5.3".default or false) || (byteorder."0.5.3"."default" or false); } + { "0.5.3".default = (f.byteorder."0.5.3".default or true); } ]; }) []; @@ -376,17 +389,18 @@ rec { crates.byteorder."1.2.7" = deps: { features?(features_.byteorder."1.2.7" deps {}) }: buildRustCrate { crateName = "byteorder"; version = "1.2.7"; + description = "Library for reading/writing numbers in big-endian and little-endian."; authors = [ "Andrew Gallant " ]; sha256 = "0wsl8in6jk2v1n8s8jz0pjd99mjr2isbf981497pgavwg6i11q5h"; features = mkFeatures (features."byteorder"."1.2.7" or {}); }; features_.byteorder."1.2.7" = deps: f: updateFeatures f (rec { byteorder = fold recursiveUpdate {} [ - { "1.2.7".default = (f.byteorder."1.2.7".default or true); } - { "1.2.7".std = - (f.byteorder."1.2.7".std or false) || + { "1.2.7"."std" = + (f.byteorder."1.2.7"."std" or false) || (f.byteorder."1.2.7".default or false) || (byteorder."1.2.7"."default" or false); } + { "1.2.7".default = (f.byteorder."1.2.7".default or true); } ]; }) []; @@ -397,6 +411,7 @@ rec { crates.cc."1.0.28" = deps: { features?(features_.cc."1.0.28" deps {}) }: buildRustCrate { crateName = "cc"; version = "1.0.28"; + description = "A build-time dependency for Cargo build scripts to assist in invoking the native\nC compiler to compile native C code into a static archive to be linked into Rust\ncode.\n"; authors = [ "Alex Crichton " ]; sha256 = "07harxg2cjw75qvnq637z088w9qaa0hgj0nmcm6yh9in8m2swl19"; dependencies = mapFeatures features ([ @@ -405,11 +420,11 @@ rec { }; features_.cc."1.0.28" = deps: f: updateFeatures f (rec { cc = fold recursiveUpdate {} [ - { "1.0.28".default = (f.cc."1.0.28".default or true); } - { "1.0.28".rayon = - (f.cc."1.0.28".rayon or false) || + { "1.0.28"."rayon" = + (f.cc."1.0.28"."rayon" or false) || (f.cc."1.0.28".parallel or false) || (cc."1.0.28"."parallel" or false); } + { "1.0.28".default = (f.cc."1.0.28".default or true); } ]; }) []; @@ -420,6 +435,7 @@ rec { crates.cfg_if."0.1.6" = deps: { features?(features_.cfg_if."0.1.6" deps {}) }: buildRustCrate { crateName = "cfg-if"; version = "0.1.6"; + description = "A macro to ergonomically define an item depending on a large number of #[cfg]\nparameters. Structured like an if-else chain, the first matching branch is the\nitem that gets emitted.\n"; authors = [ "Alex Crichton " ]; sha256 = "11qrix06wagkplyk908i3423ps9m9np6c4vbcq81s9fyl244xv3n"; }; @@ -434,6 +450,7 @@ rec { crates.chrono."0.4.6" = deps: { features?(features_.chrono."0.4.6" deps {}) }: buildRustCrate { crateName = "chrono"; version = "0.4.6"; + description = "Date and time library for Rust"; authors = [ "Kang Seonghoon " "Brandon W Maister " ]; sha256 = "0cxgqgf4lknsii1k806dpmzapi2zccjpa350ns5wpb568mij096x"; dependencies = mapFeatures features ([ @@ -445,15 +462,15 @@ rec { }; features_.chrono."0.4.6" = deps: f: updateFeatures f (rec { chrono = fold recursiveUpdate {} [ - { "0.4.6".clock = - (f.chrono."0.4.6".clock or false) || + { "0.4.6"."clock" = + (f.chrono."0.4.6"."clock" or false) || (f.chrono."0.4.6".default or false) || (chrono."0.4.6"."default" or false); } - { "0.4.6".default = (f.chrono."0.4.6".default or true); } - { "0.4.6".time = - (f.chrono."0.4.6".time or false) || + { "0.4.6"."time" = + (f.chrono."0.4.6"."time" or false) || (f.chrono."0.4.6".clock or false) || (chrono."0.4.6"."clock" or false); } + { "0.4.6".default = (f.chrono."0.4.6".default or true); } ]; num_integer."${deps.chrono."0.4.6".num_integer}".default = (f.num_integer."${deps.chrono."0.4.6".num_integer}".default or false); num_traits."${deps.chrono."0.4.6".num_traits}".default = (f.num_traits."${deps.chrono."0.4.6".num_traits}".default or false); @@ -471,6 +488,7 @@ rec { crates.core_foundation."0.2.3" = deps: { features?(features_.core_foundation."0.2.3" deps {}) }: buildRustCrate { crateName = "core-foundation"; version = "0.2.3"; + description = "Bindings to Core Foundation for OS X"; authors = [ "The Servo Project Developers" ]; sha256 = "1g0vpya5h2wa0nlz4a74jar6y8z09f0p76zbzfqrm3dbfsrld1pm"; dependencies = mapFeatures features ([ @@ -494,6 +512,7 @@ rec { crates.core_foundation_sys."0.2.3" = deps: { features?(features_.core_foundation_sys."0.2.3" deps {}) }: buildRustCrate { crateName = "core-foundation-sys"; version = "0.2.3"; + description = "Bindings to Core Foundation for OS X"; authors = [ "The Servo Project Developers" ]; sha256 = "19s0d03294m9s5j8cvy345db3gkhs2y02j5268ap0c6ky5apl53s"; build = "build.rs"; @@ -515,6 +534,7 @@ rec { crates.either."1.5.0" = deps: { features?(features_.either."1.5.0" deps {}) }: buildRustCrate { crateName = "either"; version = "1.5.0"; + description = "The enum `Either` with variants `Left` and `Right` is a general purpose sum type with two cases.\n"; authors = [ "bluss" ]; sha256 = "1f7kl2ln01y02m8fpd2zrdjiwqmgfvl9nxxrfry3k19d1gd2bsvz"; dependencies = mapFeatures features ([ @@ -523,11 +543,11 @@ rec { }; features_.either."1.5.0" = deps: f: updateFeatures f (rec { either = fold recursiveUpdate {} [ - { "1.5.0".default = (f.either."1.5.0".default or true); } - { "1.5.0".use_std = - (f.either."1.5.0".use_std or false) || + { "1.5.0"."use_std" = + (f.either."1.5.0"."use_std" or false) || (f.either."1.5.0".default or false) || (either."1.5.0"."default" or false); } + { "1.5.0".default = (f.either."1.5.0".default or true); } ]; }) []; @@ -538,6 +558,7 @@ rec { crates.enum_primitive."0.1.1" = deps: { features?(features_.enum_primitive."0.1.1" deps {}) }: buildRustCrate { crateName = "enum_primitive"; version = "0.1.1"; + description = "Macro to generate num::FromPrimitive instances for enum that works in Rust 1.0"; authors = [ "Anders Kaseorg " ]; sha256 = "1a225rlsz7sz3nn14dar71kp2f9v08s3rwl6j55xp51mv01f695y"; dependencies = mapFeatures features ([ @@ -558,6 +579,7 @@ rec { crates.env_logger."0.3.5" = deps: { features?(features_.env_logger."0.3.5" deps {}) }: buildRustCrate { crateName = "env_logger"; version = "0.3.5"; + description = "An logging implementation for `log` which is configured via an environment\nvariable.\n"; authors = [ "The Rust Project Developers" ]; sha256 = "1mvxiaaqsyjliv1mm1qaagjqiccw11mdyi3n9h9rf8y6wj15zycw"; dependencies = mapFeatures features ([ @@ -568,11 +590,11 @@ rec { }; features_.env_logger."0.3.5" = deps: f: updateFeatures f (rec { env_logger = fold recursiveUpdate {} [ - { "0.3.5".default = (f.env_logger."0.3.5".default or true); } - { "0.3.5".regex = - (f.env_logger."0.3.5".regex or false) || + { "0.3.5"."regex" = + (f.env_logger."0.3.5"."regex" or false) || (f.env_logger."0.3.5".default or false) || (env_logger."0.3.5"."default" or false); } + { "0.3.5".default = (f.env_logger."0.3.5".default or true); } ]; log."${deps.env_logger."0.3.5".log}".default = true; regex."${deps.env_logger."0.3.5".regex}".default = true; @@ -588,6 +610,7 @@ rec { crates.env_logger."0.4.3" = deps: { features?(features_.env_logger."0.4.3" deps {}) }: buildRustCrate { crateName = "env_logger"; version = "0.4.3"; + description = "A logging implementation for `log` which is configured via an environment\nvariable.\n"; authors = [ "The Rust Project Developers" ]; sha256 = "0nrx04p4xa86d5kc7aq4fwvipbqji9cmgy449h47nc9f1chafhgg"; dependencies = mapFeatures features ([ @@ -598,11 +621,11 @@ rec { }; features_.env_logger."0.4.3" = deps: f: updateFeatures f (rec { env_logger = fold recursiveUpdate {} [ - { "0.4.3".default = (f.env_logger."0.4.3".default or true); } - { "0.4.3".regex = - (f.env_logger."0.4.3".regex or false) || + { "0.4.3"."regex" = + (f.env_logger."0.4.3"."regex" or false) || (f.env_logger."0.4.3".default or false) || (env_logger."0.4.3"."default" or false); } + { "0.4.3".default = (f.env_logger."0.4.3".default or true); } ]; log."${deps.env_logger."0.4.3".log}".default = true; regex."${deps.env_logger."0.4.3".regex}".default = true; @@ -618,6 +641,7 @@ rec { crates.error_chain."0.10.0" = deps: { features?(features_.error_chain."0.10.0" deps {}) }: buildRustCrate { crateName = "error-chain"; version = "0.10.0"; + description = "Yet another error boilerplate library."; authors = [ "Brian Anderson " "Paul Colomiets " "Colin Kiegel " "Yamakaky " ]; sha256 = "1xxbzd8cjlpzsb9fsih7mdnndhzrvykj0w77yg90qc85az1xwy5z"; dependencies = mapFeatures features ([ @@ -628,15 +652,15 @@ rec { features_.error_chain."0.10.0" = deps: f: updateFeatures f (rec { backtrace."${deps.error_chain."0.10.0".backtrace}".default = true; error_chain = fold recursiveUpdate {} [ - { "0.10.0".backtrace = - (f.error_chain."0.10.0".backtrace or false) || + { "0.10.0"."backtrace" = + (f.error_chain."0.10.0"."backtrace" or false) || + (f.error_chain."0.10.0".default or false) || + (error_chain."0.10.0"."default" or false); } + { "0.10.0"."example_generated" = + (f.error_chain."0.10.0"."example_generated" or false) || (f.error_chain."0.10.0".default or false) || (error_chain."0.10.0"."default" or false); } { "0.10.0".default = (f.error_chain."0.10.0".default or true); } - { "0.10.0".example_generated = - (f.error_chain."0.10.0".example_generated or false) || - (f.error_chain."0.10.0".default or false) || - (error_chain."0.10.0"."default" or false); } ]; }) [ (features_.backtrace."${deps."error_chain"."0.10.0"."backtrace"}" deps) @@ -649,6 +673,7 @@ rec { crates.foreign_types."0.3.2" = deps: { features?(features_.foreign_types."0.3.2" deps {}) }: buildRustCrate { crateName = "foreign-types"; version = "0.3.2"; + description = "A framework for Rust wrappers over C APIs"; authors = [ "Steven Fackler " ]; sha256 = "105n8sp2djb1s5lzrw04p7ss3dchr5qa3canmynx396nh3vwm2p8"; dependencies = mapFeatures features ([ @@ -669,6 +694,7 @@ rec { crates.foreign_types_shared."0.1.1" = deps: { features?(features_.foreign_types_shared."0.1.1" deps {}) }: buildRustCrate { crateName = "foreign-types-shared"; version = "0.1.1"; + description = "An internal crate used by foreign-types"; authors = [ "Steven Fackler " ]; sha256 = "0b6cnvqbflws8dxywk4589vgbz80049lz4x1g9dfy4s1ppd3g4z5"; }; @@ -683,6 +709,7 @@ rec { crates.frank_jwt."3.1.0" = deps: { features?(features_.frank_jwt."3.1.0" deps {}) }: buildRustCrate { crateName = "frank_jwt"; version = "3.1.0"; + description = "Implementation of JSON JWT"; authors = [ "Alex Maslakov , " ]; sha256 = "1kqi6wcsk96chf1p4qfnbkmvpdb91wi0v53k5mp7wvdmaqwgj6zl"; dependencies = mapFeatures features ([ @@ -712,6 +739,7 @@ rec { crates.fs2."0.4.3" = deps: { features?(features_.fs2."0.4.3" deps {}) }: buildRustCrate { crateName = "fs2"; version = "0.4.3"; + description = "Cross-platform file locks and file duplication."; authors = [ "Dan Burkert " ]; sha256 = "1crj36rhhpk3qby9yj7r77w7sld0mzab2yicmphbdkfymbmp3ldp"; dependencies = (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ @@ -745,6 +773,7 @@ rec { crates.fuchsia_zircon."0.3.3" = deps: { features?(features_.fuchsia_zircon."0.3.3" deps {}) }: buildRustCrate { crateName = "fuchsia-zircon"; version = "0.3.3"; + description = "Rust bindings for the Zircon kernel"; authors = [ "Raph Levien " ]; sha256 = "0jrf4shb1699r4la8z358vri8318w4mdi6qzfqy30p2ymjlca4gk"; dependencies = mapFeatures features ([ @@ -768,6 +797,7 @@ rec { crates.fuchsia_zircon_sys."0.3.3" = deps: { features?(features_.fuchsia_zircon_sys."0.3.3" deps {}) }: buildRustCrate { crateName = "fuchsia-zircon-sys"; version = "0.3.3"; + description = "Low-level Rust bindings for the Zircon kernel"; authors = [ "Raph Levien " ]; sha256 = "08jp1zxrm9jbrr6l26bjal4dbm8bxfy57ickdgibsqxr1n9j3hf5"; }; @@ -782,6 +812,7 @@ rec { crates.httparse."1.3.3" = deps: { features?(features_.httparse."1.3.3" deps {}) }: buildRustCrate { crateName = "httparse"; version = "1.3.3"; + description = "A tiny, safe, speedy, zero-copy HTTP/1.x parser."; authors = [ "Sean McArthur " ]; sha256 = "1jymxy4bl0mzgp2dx0pzqzbr72sw5jmr5sjqiry4xr88z4z9qlyx"; build = "build.rs"; @@ -789,11 +820,11 @@ rec { }; features_.httparse."1.3.3" = deps: f: updateFeatures f (rec { httparse = fold recursiveUpdate {} [ - { "1.3.3".default = (f.httparse."1.3.3".default or true); } - { "1.3.3".std = - (f.httparse."1.3.3".std or false) || + { "1.3.3"."std" = + (f.httparse."1.3.3"."std" or false) || (f.httparse."1.3.3".default or false) || (httparse."1.3.3"."default" or false); } + { "1.3.3".default = (f.httparse."1.3.3".default or true); } ]; }) []; @@ -804,6 +835,7 @@ rec { crates.hyper."0.10.15" = deps: { features?(features_.hyper."0.10.15" deps {}) }: buildRustCrate { crateName = "hyper"; version = "0.10.15"; + description = "A modern HTTP library."; authors = [ "Sean McArthur " "Jonathan Reem " ]; sha256 = "14bf31dwwfvza3kfc4mmk4q0v7iq5ys3hiz7islij1x9g4c53s9p"; dependencies = mapFeatures features ([ @@ -855,6 +887,7 @@ rec { crates.hyper_native_tls."0.2.4" = deps: { features?(features_.hyper_native_tls."0.2.4" deps {}) }: buildRustCrate { crateName = "hyper-native-tls"; version = "0.2.4"; + description = "native-tls support for Hyper"; authors = [ "Steven Fackler " ]; sha256 = "1niqi1z1a3xfb9qaawy3fzrgaf8qwr925fqjswlrdjczq176f1iy"; dependencies = mapFeatures features ([ @@ -881,6 +914,7 @@ rec { crates.idna."0.1.5" = deps: { features?(features_.idna."0.1.5" deps {}) }: buildRustCrate { crateName = "idna"; version = "0.1.5"; + description = "IDNA (Internationalizing Domain Names in Applications) and Punycode."; authors = [ "The rust-url developers" ]; sha256 = "1gwgl19rz5vzi67rrhamczhxy050f5ynx4ybabfapyalv7z1qmjy"; dependencies = mapFeatures features ([ @@ -907,17 +941,18 @@ rec { crates.itoa."0.4.3" = deps: { features?(features_.itoa."0.4.3" deps {}) }: buildRustCrate { crateName = "itoa"; version = "0.4.3"; + description = "Fast functions for printing integer primitives to an io::Write"; authors = [ "David Tolnay " ]; sha256 = "0zadimmdgvili3gdwxqg7ljv3r4wcdg1kkdfp9nl15vnm23vrhy1"; features = mkFeatures (features."itoa"."0.4.3" or {}); }; features_.itoa."0.4.3" = deps: f: updateFeatures f (rec { itoa = fold recursiveUpdate {} [ - { "0.4.3".default = (f.itoa."0.4.3".default or true); } - { "0.4.3".std = - (f.itoa."0.4.3".std or false) || + { "0.4.3"."std" = + (f.itoa."0.4.3"."std" or false) || (f.itoa."0.4.3".default or false) || (itoa."0.4.3"."default" or false); } + { "0.4.3".default = (f.itoa."0.4.3".default or true); } ]; }) []; @@ -928,6 +963,7 @@ rec { crates.kernel32_sys."0.2.2" = deps: { features?(features_.kernel32_sys."0.2.2" deps {}) }: buildRustCrate { crateName = "kernel32-sys"; version = "0.2.2"; + description = "Contains function definitions for the Windows API library kernel32. See winapi for types and constants."; authors = [ "Peter Atashian " ]; sha256 = "1lrw1hbinyvr6cp28g60z97w32w8vsk6pahk64pmrv2fmby8srfj"; libName = "kernel32"; @@ -956,6 +992,7 @@ rec { crates.language_tags."0.2.2" = deps: { features?(features_.language_tags."0.2.2" deps {}) }: buildRustCrate { crateName = "language-tags"; version = "0.2.2"; + description = "Language tags for Rust"; authors = [ "Pyfisch " ]; sha256 = "1zkrdzsqzzc7509kd7nngdwrp461glm2g09kqpzaqksp82frjdvy"; dependencies = mapFeatures features ([ @@ -964,15 +1001,15 @@ rec { }; features_.language_tags."0.2.2" = deps: f: updateFeatures f (rec { language_tags = fold recursiveUpdate {} [ + { "0.2.2"."heapsize" = + (f.language_tags."0.2.2"."heapsize" or false) || + (f.language_tags."0.2.2".heap_size or false) || + (language_tags."0.2.2"."heap_size" or false); } + { "0.2.2"."heapsize_plugin" = + (f.language_tags."0.2.2"."heapsize_plugin" or false) || + (f.language_tags."0.2.2".heap_size or false) || + (language_tags."0.2.2"."heap_size" or false); } { "0.2.2".default = (f.language_tags."0.2.2".default or true); } - { "0.2.2".heapsize = - (f.language_tags."0.2.2".heapsize or false) || - (f.language_tags."0.2.2".heap_size or false) || - (language_tags."0.2.2"."heap_size" or false); } - { "0.2.2".heapsize_plugin = - (f.language_tags."0.2.2".heapsize_plugin or false) || - (f.language_tags."0.2.2".heap_size or false) || - (language_tags."0.2.2"."heap_size" or false); } ]; }) []; @@ -983,6 +1020,7 @@ rec { crates.lazy_static."0.2.11" = deps: { features?(features_.lazy_static."0.2.11" deps {}) }: buildRustCrate { crateName = "lazy_static"; version = "0.2.11"; + description = "A macro for declaring lazily evaluated statics in Rust."; authors = [ "Marvin Löbel " ]; sha256 = "1x6871cvpy5b96yv4c7jvpq316fp5d4609s9py7qk6cd6x9k34vm"; dependencies = mapFeatures features ([ @@ -991,19 +1029,19 @@ rec { }; features_.lazy_static."0.2.11" = deps: f: updateFeatures f (rec { lazy_static = fold recursiveUpdate {} [ - { "0.2.11".compiletest_rs = - (f.lazy_static."0.2.11".compiletest_rs or false) || + { "0.2.11"."compiletest_rs" = + (f.lazy_static."0.2.11"."compiletest_rs" or false) || (f.lazy_static."0.2.11".compiletest or false) || (lazy_static."0.2.11"."compiletest" or false); } + { "0.2.11"."nightly" = + (f.lazy_static."0.2.11"."nightly" or false) || + (f.lazy_static."0.2.11".spin_no_std or false) || + (lazy_static."0.2.11"."spin_no_std" or false); } + { "0.2.11"."spin" = + (f.lazy_static."0.2.11"."spin" or false) || + (f.lazy_static."0.2.11".spin_no_std or false) || + (lazy_static."0.2.11"."spin_no_std" or false); } { "0.2.11".default = (f.lazy_static."0.2.11".default or true); } - { "0.2.11".nightly = - (f.lazy_static."0.2.11".nightly or false) || - (f.lazy_static."0.2.11".spin_no_std or false) || - (lazy_static."0.2.11"."spin_no_std" or false); } - { "0.2.11".spin = - (f.lazy_static."0.2.11".spin or false) || - (f.lazy_static."0.2.11".spin_no_std or false) || - (lazy_static."0.2.11"."spin_no_std" or false); } ]; }) []; @@ -1014,6 +1052,7 @@ rec { crates.lazy_static."1.2.0" = deps: { features?(features_.lazy_static."1.2.0" deps {}) }: buildRustCrate { crateName = "lazy_static"; version = "1.2.0"; + description = "A macro for declaring lazily evaluated statics in Rust."; authors = [ "Marvin Löbel " ]; sha256 = "07p3b30k2akyr6xw08ggd5qiz5nw3vd3agggj360fcc1njz7d0ss"; dependencies = mapFeatures features ([ @@ -1022,11 +1061,11 @@ rec { }; features_.lazy_static."1.2.0" = deps: f: updateFeatures f (rec { lazy_static = fold recursiveUpdate {} [ - { "1.2.0".default = (f.lazy_static."1.2.0".default or true); } - { "1.2.0".spin = - (f.lazy_static."1.2.0".spin or false) || + { "1.2.0"."spin" = + (f.lazy_static."1.2.0"."spin" or false) || (f.lazy_static."1.2.0".spin_no_std or false) || (lazy_static."1.2.0"."spin_no_std" or false); } + { "1.2.0".default = (f.lazy_static."1.2.0".default or true); } ]; }) []; @@ -1037,6 +1076,7 @@ rec { crates.libc."0.2.46" = deps: { features?(features_.libc."0.2.46" deps {}) }: buildRustCrate { crateName = "libc"; version = "0.2.46"; + description = "Raw FFI bindings to platform libraries like libc.\n"; authors = [ "The Rust Project Developers" ]; sha256 = "03zvz98an2j1srhlzgbh7w2l0mj1sybsg0hc2gn0s31xjw39g74k"; build = "build.rs"; @@ -1046,19 +1086,19 @@ rec { }; features_.libc."0.2.46" = deps: f: updateFeatures f (rec { libc = fold recursiveUpdate {} [ - { "0.2.46".align = - (f.libc."0.2.46".align or false) || + { "0.2.46"."align" = + (f.libc."0.2.46"."align" or false) || (f.libc."0.2.46".rustc-dep-of-std or false) || (libc."0.2.46"."rustc-dep-of-std" or false); } - { "0.2.46".default = (f.libc."0.2.46".default or true); } - { "0.2.46".rustc-std-workspace-core = - (f.libc."0.2.46".rustc-std-workspace-core or false) || + { "0.2.46"."rustc-std-workspace-core" = + (f.libc."0.2.46"."rustc-std-workspace-core" or false) || (f.libc."0.2.46".rustc-dep-of-std or false) || (libc."0.2.46"."rustc-dep-of-std" or false); } - { "0.2.46".use_std = - (f.libc."0.2.46".use_std or false) || + { "0.2.46"."use_std" = + (f.libc."0.2.46"."use_std" or false) || (f.libc."0.2.46".default or false) || (libc."0.2.46"."default" or false); } + { "0.2.46".default = (f.libc."0.2.46".default or true); } ]; }) []; @@ -1069,6 +1109,7 @@ rec { crates.linked_hash_map."0.4.2" = deps: { features?(features_.linked_hash_map."0.4.2" deps {}) }: buildRustCrate { crateName = "linked-hash-map"; version = "0.4.2"; + description = "A HashMap wrapper that holds key-value pairs in insertion order"; authors = [ "Stepan Koltsov " "Andrew Paseltiner " ]; sha256 = "04da208h6jb69f46j37jnvsw2i1wqplglp4d61csqcrhh83avbgl"; dependencies = mapFeatures features ([ @@ -1077,19 +1118,19 @@ rec { }; features_.linked_hash_map."0.4.2" = deps: f: updateFeatures f (rec { linked_hash_map = fold recursiveUpdate {} [ - { "0.4.2".default = (f.linked_hash_map."0.4.2".default or true); } - { "0.4.2".heapsize = - (f.linked_hash_map."0.4.2".heapsize or false) || + { "0.4.2"."heapsize" = + (f.linked_hash_map."0.4.2"."heapsize" or false) || (f.linked_hash_map."0.4.2".heapsize_impl or false) || (linked_hash_map."0.4.2"."heapsize_impl" or false); } - { "0.4.2".serde = - (f.linked_hash_map."0.4.2".serde or false) || + { "0.4.2"."serde" = + (f.linked_hash_map."0.4.2"."serde" or false) || (f.linked_hash_map."0.4.2".serde_impl or false) || (linked_hash_map."0.4.2"."serde_impl" or false); } - { "0.4.2".serde_test = - (f.linked_hash_map."0.4.2".serde_test or false) || + { "0.4.2"."serde_test" = + (f.linked_hash_map."0.4.2"."serde_test" or false) || (f.linked_hash_map."0.4.2".serde_impl or false) || (linked_hash_map."0.4.2"."serde_impl" or false); } + { "0.4.2".default = (f.linked_hash_map."0.4.2".default or true); } ]; }) []; @@ -1100,17 +1141,18 @@ rec { crates.log."0.3.8" = deps: { features?(features_.log."0.3.8" deps {}) }: buildRustCrate { crateName = "log"; version = "0.3.8"; + description = "A lightweight logging facade for Rust\n"; authors = [ "The Rust Project Developers" ]; sha256 = "1c43z4z85sxrsgir4s1hi84558ab5ic7jrn5qgmsiqcv90vvn006"; features = mkFeatures (features."log"."0.3.8" or {}); }; features_.log."0.3.8" = deps: f: updateFeatures f (rec { log = fold recursiveUpdate {} [ - { "0.3.8".default = (f.log."0.3.8".default or true); } - { "0.3.8".use_std = - (f.log."0.3.8".use_std or false) || + { "0.3.8"."use_std" = + (f.log."0.3.8"."use_std" or false) || (f.log."0.3.8".default or false) || (log."0.3.8"."default" or false); } + { "0.3.8".default = (f.log."0.3.8".default or true); } ]; }) []; @@ -1121,6 +1163,7 @@ rec { crates.lru_cache."0.1.1" = deps: { features?(features_.lru_cache."0.1.1" deps {}) }: buildRustCrate { crateName = "lru-cache"; version = "0.1.1"; + description = "A cache that holds a limited number of key-value pairs"; authors = [ "Stepan Koltsov " ]; sha256 = "1hl6kii1g54sq649gnscv858mmw7a02xj081l4vcgvrswdi2z8fw"; dependencies = mapFeatures features ([ @@ -1137,11 +1180,11 @@ rec { { "${deps.lru_cache."0.1.1".linked_hash_map}".default = true; } ]; lru_cache = fold recursiveUpdate {} [ - { "0.1.1".default = (f.lru_cache."0.1.1".default or true); } - { "0.1.1".heapsize = - (f.lru_cache."0.1.1".heapsize or false) || + { "0.1.1"."heapsize" = + (f.lru_cache."0.1.1"."heapsize" or false) || (f.lru_cache."0.1.1".heapsize_impl or false) || (lru_cache."0.1.1"."heapsize_impl" or false); } + { "0.1.1".default = (f.lru_cache."0.1.1".default or true); } ]; }) [ (features_.linked_hash_map."${deps."lru_cache"."0.1.1"."linked_hash_map"}" deps) @@ -1154,6 +1197,7 @@ rec { crates.matches."0.1.8" = deps: { features?(features_.matches."0.1.8" deps {}) }: buildRustCrate { crateName = "matches"; version = "0.1.8"; + description = "A macro to evaluate, as a boolean, whether an expression matches a pattern."; authors = [ "Simon Sapin " ]; sha256 = "03hl636fg6xggy0a26200xs74amk3k9n0908rga2szn68agyz3cv"; libPath = "lib.rs"; @@ -1169,6 +1213,7 @@ rec { crates.md5."0.3.8" = deps: { features?(features_.md5."0.3.8" deps {}) }: buildRustCrate { crateName = "md5"; version = "0.3.8"; + description = "The package provides the MD5 hash function."; authors = [ "Ivan Ukhov " "Kamal Ahmad " "Konstantin Stepanov " "Lukas Kalbertodt " "Nathan Musoke " "Tony Arcieri " "Wim de With " ]; sha256 = "0ciydcf5y3zmygzschhg4f242p9rf1d75jfj0hay4xjj29l319yd"; }; @@ -1183,6 +1228,7 @@ rec { crates.memchr."0.1.11" = deps: { features?(features_.memchr."0.1.11" deps {}) }: buildRustCrate { crateName = "memchr"; version = "0.1.11"; + description = "Safe interface to memchr."; authors = [ "Andrew Gallant " "bluss" ]; sha256 = "0x73jghamvxxq5fsw9wb0shk5m6qp3q6fsf0nibn0i6bbqkw91s8"; dependencies = mapFeatures features ([ @@ -1203,6 +1249,7 @@ rec { crates.memchr."2.1.2" = deps: { features?(features_.memchr."2.1.2" deps {}) }: buildRustCrate { crateName = "memchr"; version = "2.1.2"; + description = "Safe interface to memchr."; authors = [ "Andrew Gallant " "bluss" ]; sha256 = "0vdwvcmn1j65qslsxlk7fjhm53nicd5cg5hvdmbg6kybyf1lnkv1"; dependencies = mapFeatures features ([ @@ -1225,17 +1272,17 @@ rec { { "${deps.memchr."2.1.2".libc}".default = (f.libc."${deps.memchr."2.1.2".libc}".default or false); } ]; memchr = fold recursiveUpdate {} [ - { "2.1.2".default = (f.memchr."2.1.2".default or true); } - { "2.1.2".libc = - (f.memchr."2.1.2".libc or false) || + { "2.1.2"."libc" = + (f.memchr."2.1.2"."libc" or false) || (f.memchr."2.1.2".default or false) || (memchr."2.1.2"."default" or false) || (f.memchr."2.1.2".use_std or false) || (memchr."2.1.2"."use_std" or false); } - { "2.1.2".use_std = - (f.memchr."2.1.2".use_std or false) || + { "2.1.2"."use_std" = + (f.memchr."2.1.2"."use_std" or false) || (f.memchr."2.1.2".default or false) || (memchr."2.1.2"."default" or false); } + { "2.1.2".default = (f.memchr."2.1.2".default or true); } ]; version_check."${deps.memchr."2.1.2".version_check}".default = true; }) [ @@ -1251,6 +1298,7 @@ rec { crates.mime."0.2.6" = deps: { features?(features_.mime."0.2.6" deps {}) }: buildRustCrate { crateName = "mime"; version = "0.2.6"; + description = "Strongly Typed Mimes"; authors = [ "Sean McArthur " ]; sha256 = "1skwwa0j3kqd8rm9387zgabjhp07zj99q71nzlhba4lrz9r911b3"; dependencies = mapFeatures features ([ @@ -1261,11 +1309,11 @@ rec { features_.mime."0.2.6" = deps: f: updateFeatures f (rec { log."${deps.mime."0.2.6".log}".default = true; mime = fold recursiveUpdate {} [ - { "0.2.6".default = (f.mime."0.2.6".default or true); } - { "0.2.6".heapsize = - (f.mime."0.2.6".heapsize or false) || + { "0.2.6"."heapsize" = + (f.mime."0.2.6"."heapsize" or false) || (f.mime."0.2.6".heap_size or false) || (mime."0.2.6"."heap_size" or false); } + { "0.2.6".default = (f.mime."0.2.6".default or true); } ]; }) [ (features_.log."${deps."mime"."0.2.6"."log"}" deps) @@ -1278,6 +1326,7 @@ rec { crates.native_tls."0.1.5" = deps: { features?(features_.native_tls."0.1.5" deps {}) }: buildRustCrate { crateName = "native-tls"; version = "0.1.5"; + description = "A wrapper over a platform's native TLS implementation"; authors = [ "Steven Fackler " ]; sha256 = "11f75qmbny5pnn6zp0vlvadrvc9ph9qsxiyn4n6q02xyd93pxxlf"; dependencies = mapFeatures features ([ @@ -1325,6 +1374,7 @@ rec { crates.nom."4.1.1" = deps: { features?(features_.nom."4.1.1" deps {}) }: buildRustCrate { crateName = "nom"; version = "4.1.1"; + description = "A byte-oriented, zero-copy, parser combinators library"; authors = [ "contact@geoffroycouprie.com" ]; sha256 = "12xd401ac6q0nf1hdd8zfx2i6ihfraa3kr1acfy3g7qz94b99635"; dependencies = mapFeatures features ([ @@ -1341,29 +1391,29 @@ rec { { "${deps.nom."4.1.1".memchr}".default = (f.memchr."${deps.nom."4.1.1".memchr}".default or false); } ]; nom = fold recursiveUpdate {} [ - { "4.1.1".alloc = - (f.nom."4.1.1".alloc or false) || + { "4.1.1"."alloc" = + (f.nom."4.1.1"."alloc" or false) || (f.nom."4.1.1".std or false) || (nom."4.1.1"."std" or false) || (f.nom."4.1.1".verbose-errors or false) || (nom."4.1.1"."verbose-errors" or false); } - { "4.1.1".default = (f.nom."4.1.1".default or true); } - { "4.1.1".lazy_static = - (f.nom."4.1.1".lazy_static or false) || + { "4.1.1"."lazy_static" = + (f.nom."4.1.1"."lazy_static" or false) || (f.nom."4.1.1".regexp_macros or false) || (nom."4.1.1"."regexp_macros" or false); } - { "4.1.1".regex = - (f.nom."4.1.1".regex or false) || + { "4.1.1"."regex" = + (f.nom."4.1.1"."regex" or false) || (f.nom."4.1.1".regexp or false) || (nom."4.1.1"."regexp" or false); } - { "4.1.1".regexp = - (f.nom."4.1.1".regexp or false) || + { "4.1.1"."regexp" = + (f.nom."4.1.1"."regexp" or false) || (f.nom."4.1.1".regexp_macros or false) || (nom."4.1.1"."regexp_macros" or false); } - { "4.1.1".std = - (f.nom."4.1.1".std or false) || + { "4.1.1"."std" = + (f.nom."4.1.1"."std" or false) || (f.nom."4.1.1".default or false) || (nom."4.1.1"."default" or false); } + { "4.1.1".default = (f.nom."4.1.1".default or true); } ]; }) [ (features_.memchr."${deps."nom"."4.1.1"."memchr"}" deps) @@ -1376,6 +1426,7 @@ rec { crates.num_integer."0.1.39" = deps: { features?(features_.num_integer."0.1.39" deps {}) }: buildRustCrate { crateName = "num-integer"; version = "0.1.39"; + description = "Integer traits and functions"; authors = [ "The Rust Project Developers" ]; sha256 = "1f42ls46cghs13qfzgbd7syib2zc6m7hlmv1qlar6c9mdxapvvbg"; build = "build.rs"; @@ -1386,11 +1437,11 @@ rec { }; features_.num_integer."0.1.39" = deps: f: updateFeatures f (rec { num_integer = fold recursiveUpdate {} [ - { "0.1.39".default = (f.num_integer."0.1.39".default or true); } - { "0.1.39".std = - (f.num_integer."0.1.39".std or false) || + { "0.1.39"."std" = + (f.num_integer."0.1.39"."std" or false) || (f.num_integer."0.1.39".default or false) || (num_integer."0.1.39"."default" or false); } + { "0.1.39".default = (f.num_integer."0.1.39".default or true); } ]; num_traits = fold recursiveUpdate {} [ { "${deps.num_integer."0.1.39".num_traits}"."i128" = @@ -1414,6 +1465,7 @@ rec { crates.num_traits."0.1.43" = deps: { features?(features_.num_traits."0.1.43" deps {}) }: buildRustCrate { crateName = "num-traits"; version = "0.1.43"; + description = "Numeric traits for generic mathematics"; authors = [ "The Rust Project Developers" ]; sha256 = "1zdzx78vrcg3f39w94pqjs1mwxl1phyv7843hwgwkzggwcxhhf6s"; dependencies = mapFeatures features ([ @@ -1436,6 +1488,7 @@ rec { crates.num_traits."0.2.6" = deps: { features?(features_.num_traits."0.2.6" deps {}) }: buildRustCrate { crateName = "num-traits"; version = "0.2.6"; + description = "Numeric traits for generic mathematics"; authors = [ "The Rust Project Developers" ]; sha256 = "1d20sil9n0wgznd1nycm3yjfj1mzyl41ambb7by1apxlyiil1azk"; build = "build.rs"; @@ -1443,11 +1496,11 @@ rec { }; features_.num_traits."0.2.6" = deps: f: updateFeatures f (rec { num_traits = fold recursiveUpdate {} [ - { "0.2.6".default = (f.num_traits."0.2.6".default or true); } - { "0.2.6".std = - (f.num_traits."0.2.6".std or false) || + { "0.2.6"."std" = + (f.num_traits."0.2.6"."std" or false) || (f.num_traits."0.2.6".default or false) || (num_traits."0.2.6"."default" or false); } + { "0.2.6".default = (f.num_traits."0.2.6".default or true); } ]; }) []; @@ -1458,6 +1511,7 @@ rec { crates.num_cpus."1.9.0" = deps: { features?(features_.num_cpus."1.9.0" deps {}) }: buildRustCrate { crateName = "num_cpus"; version = "1.9.0"; + description = "Get the number of CPUs on a machine."; authors = [ "Sean McArthur " ]; sha256 = "0lv81a9sapkprfsi03rag1mygm9qxhdw2qscdvvx2yb62pc54pvi"; dependencies = mapFeatures features ([ @@ -1478,6 +1532,7 @@ rec { crates.openssl."0.9.24" = deps: { features?(features_.openssl."0.9.24" deps {}) }: buildRustCrate { crateName = "openssl"; version = "0.9.24"; + description = "OpenSSL bindings"; authors = [ "Steven Fackler " ]; sha256 = "0wzm3c11g3ndaqyzq36mcdcm1q4a8pmsyi33ibybhjz28g2z0f79"; build = "build.rs"; @@ -1512,6 +1567,7 @@ rec { crates.openssl."0.10.16" = deps: { features?(features_.openssl."0.10.16" deps {}) }: buildRustCrate { crateName = "openssl"; version = "0.10.16"; + description = "OpenSSL bindings"; authors = [ "Steven Fackler " ]; sha256 = "17mi6p323rqkydfwykiba3b1a24j7jv7bmr7j5wai4c32i2khqsm"; dependencies = mapFeatures features ([ @@ -1554,6 +1610,7 @@ rec { crates.openssl_sys."0.9.40" = deps: { features?(features_.openssl_sys."0.9.40" deps {}) }: buildRustCrate { crateName = "openssl-sys"; version = "0.9.40"; + description = "FFI bindings to OpenSSL"; authors = [ "Alex Crichton " "Steven Fackler " ]; sha256 = "11dqyk9g2wdwwj21zma71w5hd5d4sw3hm4pnpk8jjh0wjpkgjdvq"; build = "build/main.rs"; @@ -1573,11 +1630,11 @@ rec { cc."${deps.openssl_sys."0.9.40".cc}".default = true; libc."${deps.openssl_sys."0.9.40".libc}".default = true; openssl_sys = fold recursiveUpdate {} [ - { "0.9.40".default = (f.openssl_sys."0.9.40".default or true); } - { "0.9.40".openssl-src = - (f.openssl_sys."0.9.40".openssl-src or false) || + { "0.9.40"."openssl-src" = + (f.openssl_sys."0.9.40"."openssl-src" or false) || (f.openssl_sys."0.9.40".vendored or false) || (openssl_sys."0.9.40"."vendored" or false); } + { "0.9.40".default = (f.openssl_sys."0.9.40".default or true); } ]; pkg_config."${deps.openssl_sys."0.9.40".pkg_config}".default = true; }) [ @@ -1593,6 +1650,7 @@ rec { crates.percent_encoding."1.0.1" = deps: { features?(features_.percent_encoding."1.0.1" deps {}) }: buildRustCrate { crateName = "percent-encoding"; version = "1.0.1"; + description = "Percent encoding and decoding"; authors = [ "The rust-url developers" ]; sha256 = "04ahrp7aw4ip7fmadb0bknybmkfav0kk0gw4ps3ydq5w6hr0ib5i"; libPath = "lib.rs"; @@ -1608,6 +1666,7 @@ rec { crates.pkg_config."0.3.14" = deps: { features?(features_.pkg_config."0.3.14" deps {}) }: buildRustCrate { crateName = "pkg-config"; version = "0.3.14"; + description = "A library to run the pkg-config system tool at build time in order to be used in\nCargo build scripts.\n"; authors = [ "Alex Crichton " ]; sha256 = "0207fsarrm412j0dh87lfcas72n8mxar7q3mgflsbsrqnb140sv6"; }; @@ -1622,6 +1681,7 @@ rec { crates.proc_macro2."0.4.24" = deps: { features?(features_.proc_macro2."0.4.24" deps {}) }: buildRustCrate { crateName = "proc-macro2"; version = "0.4.24"; + description = "A stable implementation of the upcoming new `proc_macro` API. Comes with an\noption, off by default, to also reimplement itself in terms of the upstream\nunstable API.\n"; authors = [ "Alex Crichton " ]; sha256 = "0ra2z9j3h0bbfq40p8mfwf28shnbxqryb45pfzg47xaszf85ylv2"; build = "build.rs"; @@ -1632,13 +1692,13 @@ rec { }; features_.proc_macro2."0.4.24" = deps: f: updateFeatures f (rec { proc_macro2 = fold recursiveUpdate {} [ - { "0.4.24".default = (f.proc_macro2."0.4.24".default or true); } - { "0.4.24".proc-macro = - (f.proc_macro2."0.4.24".proc-macro or false) || + { "0.4.24"."proc-macro" = + (f.proc_macro2."0.4.24"."proc-macro" or false) || (f.proc_macro2."0.4.24".default or false) || (proc_macro2."0.4.24"."default" or false) || (f.proc_macro2."0.4.24".nightly or false) || (proc_macro2."0.4.24"."nightly" or false); } + { "0.4.24".default = (f.proc_macro2."0.4.24".default or true); } ]; unicode_xid."${deps.proc_macro2."0.4.24".unicode_xid}".default = true; }) [ @@ -1652,6 +1712,7 @@ rec { crates.quote."0.6.10" = deps: { features?(features_.quote."0.6.10" deps {}) }: buildRustCrate { crateName = "quote"; version = "0.6.10"; + description = "Quasi-quoting macro quote!(...)"; authors = [ "David Tolnay " ]; sha256 = "0q5dlhk9hz795872fsf02vlbazx691393j7q426q590vdqcgj0qx"; dependencies = mapFeatures features ([ @@ -1668,11 +1729,11 @@ rec { { "${deps.quote."0.6.10".proc_macro2}".default = (f.proc_macro2."${deps.quote."0.6.10".proc_macro2}".default or false); } ]; quote = fold recursiveUpdate {} [ - { "0.6.10".default = (f.quote."0.6.10".default or true); } - { "0.6.10".proc-macro = - (f.quote."0.6.10".proc-macro or false) || + { "0.6.10"."proc-macro" = + (f.quote."0.6.10"."proc-macro" or false) || (f.quote."0.6.10".default or false) || (quote."0.6.10"."default" or false); } + { "0.6.10".default = (f.quote."0.6.10".default or true); } ]; }) [ (features_.proc_macro2."${deps."quote"."0.6.10"."proc_macro2"}" deps) @@ -1685,6 +1746,7 @@ rec { crates.rand."0.3.22" = deps: { features?(features_.rand."0.3.22" deps {}) }: buildRustCrate { crateName = "rand"; version = "0.3.22"; + description = "Random number generators and other randomness functionality.\n"; authors = [ "The Rust Project Developers" ]; sha256 = "0wrj12acx7l4hr7ag3nz8b50yhp8ancyq988bzmnnsxln67rsys0"; dependencies = mapFeatures features ([ @@ -1701,11 +1763,11 @@ rec { libc."${deps.rand."0.3.22".libc}".default = true; rand = fold recursiveUpdate {} [ { "${deps.rand."0.3.22".rand}".default = true; } - { "0.3.22".default = (f.rand."0.3.22".default or true); } - { "0.3.22".i128_support = - (f.rand."0.3.22".i128_support or false) || + { "0.3.22"."i128_support" = + (f.rand."0.3.22"."i128_support" or false) || (f.rand."0.3.22".nightly or false) || (rand."0.3.22"."nightly" or false); } + { "0.3.22".default = (f.rand."0.3.22".default or true); } ]; }) [ (features_.libc."${deps."rand"."0.3.22"."libc"}" deps) @@ -1720,6 +1782,7 @@ rec { crates.rand."0.4.3" = deps: { features?(features_.rand."0.4.3" deps {}) }: buildRustCrate { crateName = "rand"; version = "0.4.3"; + description = "Random number generators and other randomness functionality.\n"; authors = [ "The Rust Project Developers" ]; sha256 = "1644wri45l147822xy7dgdm4k7myxzs66cb795ga0x7dan11ci4f"; dependencies = (if kernel == "fuchsia" then mapFeatures features ([ @@ -1737,19 +1800,19 @@ rec { fuchsia_zircon."${deps.rand."0.4.3".fuchsia_zircon}".default = true; libc."${deps.rand."0.4.3".libc}".default = true; rand = fold recursiveUpdate {} [ - { "0.4.3".default = (f.rand."0.4.3".default or true); } - { "0.4.3".i128_support = - (f.rand."0.4.3".i128_support or false) || + { "0.4.3"."i128_support" = + (f.rand."0.4.3"."i128_support" or false) || (f.rand."0.4.3".nightly or false) || (rand."0.4.3"."nightly" or false); } - { "0.4.3".libc = - (f.rand."0.4.3".libc or false) || + { "0.4.3"."libc" = + (f.rand."0.4.3"."libc" or false) || (f.rand."0.4.3".std or false) || (rand."0.4.3"."std" or false); } - { "0.4.3".std = - (f.rand."0.4.3".std or false) || + { "0.4.3"."std" = + (f.rand."0.4.3"."std" or false) || (f.rand."0.4.3".default or false) || (rand."0.4.3"."default" or false); } + { "0.4.3".default = (f.rand."0.4.3".default or true); } ]; winapi = fold recursiveUpdate {} [ { "${deps.rand."0.4.3".winapi}"."minwindef" = true; } @@ -1771,6 +1834,7 @@ rec { crates.redox_syscall."0.1.50" = deps: { features?(features_.redox_syscall."0.1.50" deps {}) }: buildRustCrate { crateName = "redox_syscall"; version = "0.1.50"; + description = "A Rust library to access raw Redox system calls"; authors = [ "Jeremy Soller " ]; sha256 = "0f7lpamlizfv9cbyyqwwzp9rbk66gppqdx5kw5vq24cfzy9dbpiw"; libName = "syscall"; @@ -1786,6 +1850,7 @@ rec { crates.regex."0.1.80" = deps: { features?(features_.regex."0.1.80" deps {}) }: buildRustCrate { crateName = "regex"; version = "0.1.80"; + description = "An implementation of regular expressions for Rust. This implementation uses\nfinite automata and guarantees linear time matching on all inputs.\n"; authors = [ "The Rust Project Developers" ]; sha256 = "0y4s8ghhx6sgzb35irwivm3w0l2hhqhmdcd2px9hirqnkagal9l6"; dependencies = mapFeatures features ([ @@ -1801,11 +1866,11 @@ rec { aho_corasick."${deps.regex."0.1.80".aho_corasick}".default = true; memchr."${deps.regex."0.1.80".memchr}".default = true; regex = fold recursiveUpdate {} [ - { "0.1.80".default = (f.regex."0.1.80".default or true); } - { "0.1.80".simd = - (f.regex."0.1.80".simd or false) || + { "0.1.80"."simd" = + (f.regex."0.1.80"."simd" or false) || (f.regex."0.1.80".simd-accel or false) || (regex."0.1.80"."simd-accel" or false); } + { "0.1.80".default = (f.regex."0.1.80".default or true); } ]; regex_syntax."${deps.regex."0.1.80".regex_syntax}".default = true; thread_local."${deps.regex."0.1.80".thread_local}".default = true; @@ -1825,6 +1890,7 @@ rec { crates.regex."0.2.11" = deps: { features?(features_.regex."0.2.11" deps {}) }: buildRustCrate { crateName = "regex"; version = "0.2.11"; + description = "An implementation of regular expressions for Rust. This implementation uses\nfinite automata and guarantees linear time matching on all inputs.\n"; authors = [ "The Rust Project Developers" ]; sha256 = "0r50cymxdqp0fv1dxd22mjr6y32q450nwacd279p9s7lh0cafijj"; dependencies = mapFeatures features ([ @@ -1840,11 +1906,11 @@ rec { aho_corasick."${deps.regex."0.2.11".aho_corasick}".default = true; memchr."${deps.regex."0.2.11".memchr}".default = true; regex = fold recursiveUpdate {} [ - { "0.2.11".default = (f.regex."0.2.11".default or true); } - { "0.2.11".pattern = - (f.regex."0.2.11".pattern or false) || + { "0.2.11"."pattern" = + (f.regex."0.2.11"."pattern" or false) || (f.regex."0.2.11".unstable or false) || (regex."0.2.11"."unstable" or false); } + { "0.2.11".default = (f.regex."0.2.11".default or true); } ]; regex_syntax."${deps.regex."0.2.11".regex_syntax}".default = true; thread_local."${deps.regex."0.2.11".thread_local}".default = true; @@ -1864,6 +1930,7 @@ rec { crates.regex_syntax."0.3.9" = deps: { features?(features_.regex_syntax."0.3.9" deps {}) }: buildRustCrate { crateName = "regex-syntax"; version = "0.3.9"; + description = "A regular expression parser."; authors = [ "The Rust Project Developers" ]; sha256 = "1mzhphkbwppwd1zam2jkgjk550cqgf6506i87bw2yzrvcsraiw7m"; }; @@ -1878,6 +1945,7 @@ rec { crates.regex_syntax."0.5.6" = deps: { features?(features_.regex_syntax."0.5.6" deps {}) }: buildRustCrate { crateName = "regex-syntax"; version = "0.5.6"; + description = "A regular expression parser."; authors = [ "The Rust Project Developers" ]; sha256 = "10vf3r34bgjnbrnqd5aszn35bjvm8insw498l1vjy8zx5yms3427"; dependencies = mapFeatures features ([ @@ -1898,6 +1966,7 @@ rec { crates.remove_dir_all."0.5.1" = deps: { features?(features_.remove_dir_all."0.5.1" deps {}) }: buildRustCrate { crateName = "remove_dir_all"; version = "0.5.1"; + description = "A safe, reliable implementation of remove_dir_all for Windows"; authors = [ "Aaronepower " ]; sha256 = "1chx3yvfbj46xjz4bzsvps208l46hfbcy0sm98gpiya454n4rrl7"; dependencies = (if kernel == "windows" then mapFeatures features ([ @@ -1925,6 +1994,7 @@ rec { crates.rustc_demangle."0.1.13" = deps: { features?(features_.rustc_demangle."0.1.13" deps {}) }: buildRustCrate { crateName = "rustc-demangle"; version = "0.1.13"; + description = "Rust compiler symbol demangling.\n"; authors = [ "Alex Crichton " ]; sha256 = "0sr6cr02araqnlqwc5ghvnafjmkw11vzjswqaz757lvyrcl8xcy6"; }; @@ -1939,6 +2009,7 @@ rec { crates.ryu."0.2.7" = deps: { features?(features_.ryu."0.2.7" deps {}) }: buildRustCrate { crateName = "ryu"; version = "0.2.7"; + description = "Fast floating point to string conversion"; authors = [ "David Tolnay " ]; sha256 = "0m8szf1m87wfqkwh1f9zp9bn2mb0m9nav028xxnd0hlig90b44bd"; build = "build.rs"; @@ -1957,17 +2028,18 @@ rec { crates.safemem."0.3.0" = deps: { features?(features_.safemem."0.3.0" deps {}) }: buildRustCrate { crateName = "safemem"; version = "0.3.0"; + description = "Safe wrappers for memory-accessing functions, like `std::ptr::copy()`."; authors = [ "Austin Bonander " ]; sha256 = "0pr39b468d05f6m7m4alsngmj5p7an8df21apsxbi57k0lmwrr18"; features = mkFeatures (features."safemem"."0.3.0" or {}); }; features_.safemem."0.3.0" = deps: f: updateFeatures f (rec { safemem = fold recursiveUpdate {} [ - { "0.3.0".default = (f.safemem."0.3.0".default or true); } - { "0.3.0".std = - (f.safemem."0.3.0".std or false) || + { "0.3.0"."std" = + (f.safemem."0.3.0"."std" or false) || (f.safemem."0.3.0".default or false) || (safemem."0.3.0"."default" or false); } + { "0.3.0".default = (f.safemem."0.3.0".default or true); } ]; }) []; @@ -1978,6 +2050,7 @@ rec { crates.schannel."0.1.14" = deps: { features?(features_.schannel."0.1.14" deps {}) }: buildRustCrate { crateName = "schannel"; version = "0.1.14"; + description = "Schannel bindings for rust, allowing SSL/TLS (e.g. https) without openssl"; authors = [ "Steven Fackler " "Steffen Butzer " ]; sha256 = "1g0a88jknns1kwn3x1k3ci5y5zvg58pwdg1xrxkrw3cwd2hynm9k"; dependencies = mapFeatures features ([ @@ -2013,6 +2086,7 @@ rec { crates.security_framework."0.1.16" = deps: { features?(features_.security_framework."0.1.16" deps {}) }: buildRustCrate { crateName = "security-framework"; version = "0.1.16"; + description = "Security Framework bindings"; authors = [ "Steven Fackler " ]; sha256 = "1kxczsaj8gz4922jl5af2gkxh71rasb6khaf3dp7ldlnw9qf2sbm"; dependencies = mapFeatures features ([ @@ -2028,20 +2102,20 @@ rec { core_foundation_sys."${deps.security_framework."0.1.16".core_foundation_sys}".default = true; libc."${deps.security_framework."0.1.16".libc}".default = true; security_framework = fold recursiveUpdate {} [ - { "0.1.16".OSX_10_10 = - (f.security_framework."0.1.16".OSX_10_10 or false) || + { "0.1.16"."OSX_10_10" = + (f.security_framework."0.1.16"."OSX_10_10" or false) || (f.security_framework."0.1.16".OSX_10_11 or false) || (security_framework."0.1.16"."OSX_10_11" or false); } - { "0.1.16".OSX_10_11 = - (f.security_framework."0.1.16".OSX_10_11 or false) || + { "0.1.16"."OSX_10_11" = + (f.security_framework."0.1.16"."OSX_10_11" or false) || (f.security_framework."0.1.16".OSX_10_12 or false) || (security_framework."0.1.16"."OSX_10_12" or false); } - { "0.1.16".OSX_10_8 = - (f.security_framework."0.1.16".OSX_10_8 or false) || + { "0.1.16"."OSX_10_8" = + (f.security_framework."0.1.16"."OSX_10_8" or false) || (f.security_framework."0.1.16".OSX_10_9 or false) || (security_framework."0.1.16"."OSX_10_9" or false); } - { "0.1.16".OSX_10_9 = - (f.security_framework."0.1.16".OSX_10_9 or false) || + { "0.1.16"."OSX_10_9" = + (f.security_framework."0.1.16"."OSX_10_9" or false) || (f.security_framework."0.1.16".OSX_10_10 or false) || (security_framework."0.1.16"."OSX_10_10" or false); } { "0.1.16".default = (f.security_framework."0.1.16".default or true); } @@ -2081,6 +2155,7 @@ rec { crates.security_framework_sys."0.1.16" = deps: { features?(features_.security_framework_sys."0.1.16" deps {}) }: buildRustCrate { crateName = "security-framework-sys"; version = "0.1.16"; + description = "Security Framework bindings"; authors = [ "Steven Fackler " ]; sha256 = "0ai2pivdr5fyc7czbkpcrwap0imyy0r8ndarrl3n5kiv0jha1js3"; build = "build.rs"; @@ -2094,20 +2169,20 @@ rec { core_foundation_sys."${deps.security_framework_sys."0.1.16".core_foundation_sys}".default = true; libc."${deps.security_framework_sys."0.1.16".libc}".default = true; security_framework_sys = fold recursiveUpdate {} [ - { "0.1.16".OSX_10_10 = - (f.security_framework_sys."0.1.16".OSX_10_10 or false) || + { "0.1.16"."OSX_10_10" = + (f.security_framework_sys."0.1.16"."OSX_10_10" or false) || (f.security_framework_sys."0.1.16".OSX_10_11 or false) || (security_framework_sys."0.1.16"."OSX_10_11" or false); } - { "0.1.16".OSX_10_11 = - (f.security_framework_sys."0.1.16".OSX_10_11 or false) || + { "0.1.16"."OSX_10_11" = + (f.security_framework_sys."0.1.16"."OSX_10_11" or false) || (f.security_framework_sys."0.1.16".OSX_10_12 or false) || (security_framework_sys."0.1.16"."OSX_10_12" or false); } - { "0.1.16".OSX_10_8 = - (f.security_framework_sys."0.1.16".OSX_10_8 or false) || + { "0.1.16"."OSX_10_8" = + (f.security_framework_sys."0.1.16"."OSX_10_8" or false) || (f.security_framework_sys."0.1.16".OSX_10_9 or false) || (security_framework_sys."0.1.16"."OSX_10_9" or false); } - { "0.1.16".OSX_10_9 = - (f.security_framework_sys."0.1.16".OSX_10_9 or false) || + { "0.1.16"."OSX_10_9" = + (f.security_framework_sys."0.1.16"."OSX_10_9" or false) || (f.security_framework_sys."0.1.16".OSX_10_10 or false) || (security_framework_sys."0.1.16"."OSX_10_10" or false); } { "0.1.16".default = (f.security_framework_sys."0.1.16".default or true); } @@ -2124,7 +2199,9 @@ rec { crates.separator."0.4.1" = deps: { features?(features_.separator."0.4.1" deps {}) }: buildRustCrate { crateName = "separator"; version = "0.4.1"; + description = "Formats numbers into strings with thousands separators for readability."; authors = [ "Saghm Rossi " ]; + edition = "2018"; sha256 = "1l7yhf6dy09k9cy0kkwb9wy98rn8mnz72q27wbd6bhiflllwghr7"; }; features_.separator."0.4.1" = deps: f: updateFeatures f (rec { @@ -2138,6 +2215,7 @@ rec { crates.serde."1.0.84" = deps: { features?(features_.serde."1.0.84" deps {}) }: buildRustCrate { crateName = "serde"; version = "1.0.84"; + description = "A generic serialization/deserialization framework"; authors = [ "Erick Tryzelaar " "David Tolnay " ]; sha256 = "1x40cvvkbkz592jflwbfbxhim3wxdqp9dy0qxjw13ra7q57b29gy"; build = "build.rs"; @@ -2147,19 +2225,19 @@ rec { }; features_.serde."1.0.84" = deps: f: updateFeatures f (rec { serde = fold recursiveUpdate {} [ - { "1.0.84".default = (f.serde."1.0.84".default or true); } - { "1.0.84".serde_derive = - (f.serde."1.0.84".serde_derive or false) || + { "1.0.84"."serde_derive" = + (f.serde."1.0.84"."serde_derive" or false) || (f.serde."1.0.84".derive or false) || (serde."1.0.84"."derive" or false); } - { "1.0.84".std = - (f.serde."1.0.84".std or false) || + { "1.0.84"."std" = + (f.serde."1.0.84"."std" or false) || (f.serde."1.0.84".default or false) || (serde."1.0.84"."default" or false); } - { "1.0.84".unstable = - (f.serde."1.0.84".unstable or false) || + { "1.0.84"."unstable" = + (f.serde."1.0.84"."unstable" or false) || (f.serde."1.0.84".alloc or false) || (serde."1.0.84"."alloc" or false); } + { "1.0.84".default = (f.serde."1.0.84".default or true); } ]; }) []; @@ -2170,6 +2248,7 @@ rec { crates.serde_derive."1.0.84" = deps: { features?(features_.serde_derive."1.0.84" deps {}) }: buildRustCrate { crateName = "serde_derive"; version = "1.0.84"; + description = "Macros 1.1 implementation of #[derive(Serialize, Deserialize)]"; authors = [ "Erick Tryzelaar " "David Tolnay " ]; sha256 = "0iz0f0z86k1kc57xaa4zjmx42y3hmmhjbv3g979ncfza228b2ki6"; procMacro = true; @@ -2201,6 +2280,7 @@ rec { crates.serde_json."1.0.34" = deps: { features?(features_.serde_json."1.0.34" deps {}) }: buildRustCrate { crateName = "serde_json"; version = "1.0.34"; + description = "A JSON serialization file format"; authors = [ "Erick Tryzelaar " "David Tolnay " ]; sha256 = "1hj96vsyfc1kzni1j7dkx818pjxadj72c9d2nq8i6vhzg37h3j8f"; dependencies = mapFeatures features ([ @@ -2215,11 +2295,11 @@ rec { ryu."${deps.serde_json."1.0.34".ryu}".default = true; serde."${deps.serde_json."1.0.34".serde}".default = true; serde_json = fold recursiveUpdate {} [ - { "1.0.34".default = (f.serde_json."1.0.34".default or true); } - { "1.0.34".indexmap = - (f.serde_json."1.0.34".indexmap or false) || + { "1.0.34"."indexmap" = + (f.serde_json."1.0.34"."indexmap" or false) || (f.serde_json."1.0.34".preserve_order or false) || (serde_json."1.0.34"."preserve_order" or false); } + { "1.0.34".default = (f.serde_json."1.0.34".default or true); } ]; }) [ (features_.itoa."${deps."serde_json"."1.0.34"."itoa"}" deps) @@ -2234,6 +2314,7 @@ rec { crates.syn."0.15.23" = deps: { features?(features_.syn."0.15.23" deps {}) }: buildRustCrate { crateName = "syn"; version = "0.15.23"; + description = "Parser for Rust source code"; authors = [ "David Tolnay " ]; sha256 = "0ybqj4vv16s16lshn464rx24v95yx4s41jq5ir004n62zksz77a1"; dependencies = mapFeatures features ([ @@ -2259,31 +2340,31 @@ rec { { "${deps.syn."0.15.23".quote}".default = (f.quote."${deps.syn."0.15.23".quote}".default or false); } ]; syn = fold recursiveUpdate {} [ - { "0.15.23".clone-impls = - (f.syn."0.15.23".clone-impls or false) || + { "0.15.23"."clone-impls" = + (f.syn."0.15.23"."clone-impls" or false) || (f.syn."0.15.23".default or false) || (syn."0.15.23"."default" or false); } - { "0.15.23".default = (f.syn."0.15.23".default or true); } - { "0.15.23".derive = - (f.syn."0.15.23".derive or false) || + { "0.15.23"."derive" = + (f.syn."0.15.23"."derive" or false) || (f.syn."0.15.23".default or false) || (syn."0.15.23"."default" or false); } - { "0.15.23".parsing = - (f.syn."0.15.23".parsing or false) || + { "0.15.23"."parsing" = + (f.syn."0.15.23"."parsing" or false) || (f.syn."0.15.23".default or false) || (syn."0.15.23"."default" or false); } - { "0.15.23".printing = - (f.syn."0.15.23".printing or false) || + { "0.15.23"."printing" = + (f.syn."0.15.23"."printing" or false) || (f.syn."0.15.23".default or false) || (syn."0.15.23"."default" or false); } - { "0.15.23".proc-macro = - (f.syn."0.15.23".proc-macro or false) || + { "0.15.23"."proc-macro" = + (f.syn."0.15.23"."proc-macro" or false) || (f.syn."0.15.23".default or false) || (syn."0.15.23"."default" or false); } - { "0.15.23".quote = - (f.syn."0.15.23".quote or false) || + { "0.15.23"."quote" = + (f.syn."0.15.23"."quote" or false) || (f.syn."0.15.23".printing or false) || (syn."0.15.23"."printing" or false); } + { "0.15.23".default = (f.syn."0.15.23".default or true); } ]; unicode_xid."${deps.syn."0.15.23".unicode_xid}".default = true; }) [ @@ -2299,6 +2380,7 @@ rec { crates.sys_info."0.5.6" = deps: { features?(features_.sys_info."0.5.6" deps {}) }: buildRustCrate { crateName = "sys-info"; version = "0.5.6"; + description = "Get system information in Rust.\n\nFor now it supports Linux, Mac OS X and Windows.\n"; authors = [ "Siyu Wang " ]; sha256 = "118ma1x3gnlm5jxxgi0bp8bskka5npnwn4f8m93zncbrbmzic2ff"; libPath = "lib.rs"; @@ -2328,6 +2410,7 @@ rec { crates.tempdir."0.3.7" = deps: { features?(features_.tempdir."0.3.7" deps {}) }: buildRustCrate { crateName = "tempdir"; version = "0.3.7"; + description = "A library for managing a temporary directory and deleting all contents when it's\ndropped.\n"; authors = [ "The Rust Project Developers" ]; sha256 = "0y53sxybyljrr7lh0x0ysrsa7p7cljmwv9v80acy3rc6n97g67vy"; dependencies = mapFeatures features ([ @@ -2351,6 +2434,7 @@ rec { crates.tempfile."2.2.0" = deps: { features?(features_.tempfile."2.2.0" deps {}) }: buildRustCrate { crateName = "tempfile"; version = "2.2.0"; + description = "Securely create temporary files."; authors = [ "Steven Allen " ]; sha256 = "1z3l901ipvi0s0mdppw4lwfa77ydb22rfnf6y9sh0pifj7ah5drf"; dependencies = mapFeatures features ([ @@ -2389,6 +2473,7 @@ rec { crates.thread_id."2.0.0" = deps: { features?(features_.thread_id."2.0.0" deps {}) }: buildRustCrate { crateName = "thread-id"; version = "2.0.0"; + description = "Get a unique thread ID"; authors = [ "Ruud van Asseldonk " ]; sha256 = "06i3c8ckn97i5rp16civ2vpqbknlkx66dkrl070iw60nawi0kjc3"; dependencies = mapFeatures features ([ @@ -2412,6 +2497,7 @@ rec { crates.thread_local."0.2.7" = deps: { features?(features_.thread_local."0.2.7" deps {}) }: buildRustCrate { crateName = "thread_local"; version = "0.2.7"; + description = "Per-object thread-local storage"; authors = [ "Amanieu d'Antras " ]; sha256 = "19p0zrs24rdwjvpi10jig5ms3sxj00pv8shkr9cpddri8cdghqp7"; dependencies = mapFeatures features ([ @@ -2432,6 +2518,7 @@ rec { crates.thread_local."0.3.6" = deps: { features?(features_.thread_local."0.3.6" deps {}) }: buildRustCrate { crateName = "thread_local"; version = "0.3.6"; + description = "Per-object thread-local storage"; authors = [ "Amanieu d'Antras " ]; sha256 = "02rksdwjmz2pw9bmgbb4c0bgkbq5z6nvg510sq1s6y2j1gam0c7i"; dependencies = mapFeatures features ([ @@ -2452,6 +2539,7 @@ rec { crates.time."0.1.41" = deps: { features?(features_.time."0.1.41" deps {}) }: buildRustCrate { crateName = "time"; version = "0.1.41"; + description = "Utilities for working with time-related functions in Rust.\n"; authors = [ "The Rust Project Developers" ]; sha256 = "0k56037d04zwy1zdznjcyq0q86r84903ixb41xk5sbwmia1k5gqg"; dependencies = mapFeatures features ([ @@ -2491,6 +2579,7 @@ rec { crates.traitobject."0.1.0" = deps: { features?(features_.traitobject."0.1.0" deps {}) }: buildRustCrate { crateName = "traitobject"; version = "0.1.0"; + description = "Unsafe helpers for working with raw trait objects."; authors = [ "Jonathan Reem " ]; sha256 = "10hi8pl361l539g4kg74mcrhn7grmwlar4jl528ddn2z2jvb7lw3"; }; @@ -2505,6 +2594,7 @@ rec { crates.typeable."0.1.2" = deps: { features?(features_.typeable."0.1.2" deps {}) }: buildRustCrate { crateName = "typeable"; version = "0.1.2"; + description = "Exposes Typeable, for getting TypeIds at runtime."; authors = [ "Jonathan Reem " ]; sha256 = "0lvff10hwyy852m6r11msyv1rpgpnapn284i8dk0p0q5saqvbvnx"; }; @@ -2519,6 +2609,7 @@ rec { crates.ucd_util."0.1.3" = deps: { features?(features_.ucd_util."0.1.3" deps {}) }: buildRustCrate { crateName = "ucd-util"; version = "0.1.3"; + description = "A small utility library for working with the Unicode character database.\n"; authors = [ "Andrew Gallant " ]; sha256 = "1n1qi3jywq5syq90z9qd8qzbn58pcjgv1sx4sdmipm4jf9zanz15"; }; @@ -2533,6 +2624,7 @@ rec { crates.unicase."1.4.2" = deps: { features?(features_.unicase."1.4.2" deps {}) }: buildRustCrate { crateName = "unicase"; version = "1.4.2"; + description = "A case-insensitive wrapper around strings."; authors = [ "Sean McArthur " ]; sha256 = "0rbnhw2mnhcwrij3vczp0sl8zdfmvf2dlh8hly81kj7132kfj0mf"; build = "build.rs"; @@ -2546,15 +2638,15 @@ rec { }; features_.unicase."1.4.2" = deps: f: updateFeatures f (rec { unicase = fold recursiveUpdate {} [ + { "1.4.2"."heapsize" = + (f.unicase."1.4.2"."heapsize" or false) || + (f.unicase."1.4.2".heap_size or false) || + (unicase."1.4.2"."heap_size" or false); } + { "1.4.2"."heapsize_plugin" = + (f.unicase."1.4.2"."heapsize_plugin" or false) || + (f.unicase."1.4.2".heap_size or false) || + (unicase."1.4.2"."heap_size" or false); } { "1.4.2".default = (f.unicase."1.4.2".default or true); } - { "1.4.2".heapsize = - (f.unicase."1.4.2".heapsize or false) || - (f.unicase."1.4.2".heap_size or false) || - (unicase."1.4.2"."heap_size" or false); } - { "1.4.2".heapsize_plugin = - (f.unicase."1.4.2".heapsize_plugin or false) || - (f.unicase."1.4.2".heap_size or false) || - (unicase."1.4.2"."heap_size" or false); } ]; version_check."${deps.unicase."1.4.2".version_check}".default = true; }) [ @@ -2568,6 +2660,7 @@ rec { crates.unicode_bidi."0.3.4" = deps: { features?(features_.unicode_bidi."0.3.4" deps {}) }: buildRustCrate { crateName = "unicode-bidi"; version = "0.3.4"; + description = "Implementation of the Unicode Bidirectional Algorithm"; authors = [ "The Servo Project Developers" ]; sha256 = "0lcd6jasrf8p9p0q20qyf10c6xhvw40m2c4rr105hbk6zy26nj1q"; libName = "unicode_bidi"; @@ -2579,19 +2672,19 @@ rec { features_.unicode_bidi."0.3.4" = deps: f: updateFeatures f (rec { matches."${deps.unicode_bidi."0.3.4".matches}".default = true; unicode_bidi = fold recursiveUpdate {} [ - { "0.3.4".default = (f.unicode_bidi."0.3.4".default or true); } - { "0.3.4".flame = - (f.unicode_bidi."0.3.4".flame or false) || + { "0.3.4"."flame" = + (f.unicode_bidi."0.3.4"."flame" or false) || (f.unicode_bidi."0.3.4".flame_it or false) || (unicode_bidi."0.3.4"."flame_it" or false); } - { "0.3.4".flamer = - (f.unicode_bidi."0.3.4".flamer or false) || + { "0.3.4"."flamer" = + (f.unicode_bidi."0.3.4"."flamer" or false) || (f.unicode_bidi."0.3.4".flame_it or false) || (unicode_bidi."0.3.4"."flame_it" or false); } - { "0.3.4".serde = - (f.unicode_bidi."0.3.4".serde or false) || + { "0.3.4"."serde" = + (f.unicode_bidi."0.3.4"."serde" or false) || (f.unicode_bidi."0.3.4".with_serde or false) || (unicode_bidi."0.3.4"."with_serde" or false); } + { "0.3.4".default = (f.unicode_bidi."0.3.4".default or true); } ]; }) [ (features_.matches."${deps."unicode_bidi"."0.3.4"."matches"}" deps) @@ -2604,6 +2697,7 @@ rec { crates.unicode_normalization."0.1.7" = deps: { features?(features_.unicode_normalization."0.1.7" deps {}) }: buildRustCrate { crateName = "unicode-normalization"; version = "0.1.7"; + description = "This crate provides functions for normalization of\nUnicode strings, including Canonical and Compatible\nDecomposition and Recomposition, as described in\nUnicode Standard Annex #15.\n"; authors = [ "kwantam " ]; sha256 = "1da2hv800pd0wilmn4idwpgv5p510hjxizjcfv6xzb40xcsjd8gs"; }; @@ -2618,6 +2712,7 @@ rec { crates.unicode_xid."0.1.0" = deps: { features?(features_.unicode_xid."0.1.0" deps {}) }: buildRustCrate { crateName = "unicode-xid"; version = "0.1.0"; + description = "Determine whether characters have the XID_Start\nor XID_Continue properties according to\nUnicode Standard Annex #31.\n"; authors = [ "erick.tryzelaar " "kwantam " ]; sha256 = "05wdmwlfzxhq3nhsxn6wx4q8dhxzzfb9szsz6wiw092m1rjj01zj"; features = mkFeatures (features."unicode_xid"."0.1.0" or {}); @@ -2633,6 +2728,7 @@ rec { crates.url."1.7.2" = deps: { features?(features_.url."1.7.2" deps {}) }: buildRustCrate { crateName = "url"; version = "1.7.2"; + description = "URL library for Rust, based on the WHATWG URL Standard"; authors = [ "The rust-url developers" ]; sha256 = "0qzrjzd9r1niv7037x4cgnv98fs1vj0k18lpxx890ipc47x5gc09"; dependencies = mapFeatures features ([ @@ -2647,15 +2743,15 @@ rec { matches."${deps.url."1.7.2".matches}".default = true; percent_encoding."${deps.url."1.7.2".percent_encoding}".default = true; url = fold recursiveUpdate {} [ - { "1.7.2".default = (f.url."1.7.2".default or true); } - { "1.7.2".encoding = - (f.url."1.7.2".encoding or false) || + { "1.7.2"."encoding" = + (f.url."1.7.2"."encoding" or false) || (f.url."1.7.2".query_encoding or false) || (url."1.7.2"."query_encoding" or false); } - { "1.7.2".heapsize = - (f.url."1.7.2".heapsize or false) || + { "1.7.2"."heapsize" = + (f.url."1.7.2"."heapsize" or false) || (f.url."1.7.2".heap_size or false) || (url."1.7.2"."heap_size" or false); } + { "1.7.2".default = (f.url."1.7.2".default or true); } ]; }) [ (features_.idna."${deps."url"."1.7.2"."idna"}" deps) @@ -2670,6 +2766,7 @@ rec { crates.utf8_ranges."0.1.3" = deps: { features?(features_.utf8_ranges."0.1.3" deps {}) }: buildRustCrate { crateName = "utf8-ranges"; version = "0.1.3"; + description = "Convert ranges of Unicode codepoints to UTF-8 byte ranges."; authors = [ "Andrew Gallant " ]; sha256 = "1cj548a91a93j8375p78qikaiam548xh84cb0ck8y119adbmsvbp"; }; @@ -2684,6 +2781,7 @@ rec { crates.utf8_ranges."1.0.2" = deps: { features?(features_.utf8_ranges."1.0.2" deps {}) }: buildRustCrate { crateName = "utf8-ranges"; version = "1.0.2"; + description = "Convert ranges of Unicode codepoints to UTF-8 byte ranges."; authors = [ "Andrew Gallant " ]; sha256 = "1my02laqsgnd8ib4dvjgd4rilprqjad6pb9jj9vi67csi5qs2281"; }; @@ -2698,6 +2796,7 @@ rec { crates.uuid."0.4.0" = deps: { features?(features_.uuid."0.4.0" deps {}) }: buildRustCrate { crateName = "uuid"; version = "0.4.0"; + description = "A library to generate and parse UUIDs.\n"; authors = [ "The Rust Project Developers" ]; sha256 = "1fzgp3ayz7g5zx4gvxkxxm9jkrllj5qlvlyp6r2an0wyqm2y9qlh"; dependencies = mapFeatures features ([ @@ -2708,15 +2807,15 @@ rec { features_.uuid."0.4.0" = deps: f: updateFeatures f (rec { rand."${deps.uuid."0.4.0".rand}".default = true; uuid = fold recursiveUpdate {} [ - { "0.4.0".default = (f.uuid."0.4.0".default or true); } - { "0.4.0".rand = - (f.uuid."0.4.0".rand or false) || + { "0.4.0"."rand" = + (f.uuid."0.4.0"."rand" or false) || (f.uuid."0.4.0".v4 or false) || (uuid."0.4.0"."v4" or false); } - { "0.4.0".sha1 = - (f.uuid."0.4.0".sha1 or false) || + { "0.4.0"."sha1" = + (f.uuid."0.4.0"."sha1" or false) || (f.uuid."0.4.0".v5 or false) || (uuid."0.4.0"."v5" or false); } + { "0.4.0".default = (f.uuid."0.4.0".default or true); } ]; }) [ (features_.rand."${deps."uuid"."0.4.0"."rand"}" deps) @@ -2729,6 +2828,7 @@ rec { crates.vcpkg."0.2.6" = deps: { features?(features_.vcpkg."0.2.6" deps {}) }: buildRustCrate { crateName = "vcpkg"; version = "0.2.6"; + description = "A library to find native dependencies in a vcpkg tree at build\ntime in order to be used in Cargo build scripts.\n"; authors = [ "Jim McGrath " ]; sha256 = "1ig6jqpzzl1z9vk4qywgpfr4hfbd8ny8frqsgm3r449wkc4n1i5x"; }; @@ -2743,6 +2843,7 @@ rec { crates.version_check."0.1.5" = deps: { features?(features_.version_check."0.1.5" deps {}) }: buildRustCrate { crateName = "version_check"; version = "0.1.5"; + description = "Tiny crate to check the version of the installed/running rustc."; authors = [ "Sergio Benitez " ]; sha256 = "1yrx9xblmwbafw2firxyqbj8f771kkzfd24n3q7xgwiqyhi0y8qd"; }; @@ -2757,6 +2858,7 @@ rec { crates.winapi."0.2.8" = deps: { features?(features_.winapi."0.2.8" deps {}) }: buildRustCrate { crateName = "winapi"; version = "0.2.8"; + description = "Types and constants for WinAPI bindings. See README for list of crates providing function bindings."; authors = [ "Peter Atashian " ]; sha256 = "0a45b58ywf12vb7gvj6h3j264nydynmzyqz8d8rqxsj6icqv82as"; }; @@ -2771,6 +2873,7 @@ rec { crates.winapi."0.3.6" = deps: { features?(features_.winapi."0.3.6" deps {}) }: buildRustCrate { crateName = "winapi"; version = "0.3.6"; + description = "Raw FFI bindings for all of Windows API."; authors = [ "Peter Atashian " ]; sha256 = "1d9jfp4cjd82sr1q4dgdlrkvm33zhhav9d7ihr0nivqbncr059m4"; build = "build.rs"; @@ -2798,6 +2901,7 @@ rec { crates.winapi_build."0.1.1" = deps: { features?(features_.winapi_build."0.1.1" deps {}) }: buildRustCrate { crateName = "winapi-build"; version = "0.1.1"; + description = "Common code for build.rs in WinAPI -sys crates."; authors = [ "Peter Atashian " ]; sha256 = "1lxlpi87rkhxcwp2ykf1ldw3p108hwm24nywf3jfrvmff4rjhqga"; libName = "build"; @@ -2813,6 +2917,7 @@ rec { crates.winapi_i686_pc_windows_gnu."0.4.0" = deps: { features?(features_.winapi_i686_pc_windows_gnu."0.4.0" deps {}) }: buildRustCrate { crateName = "winapi-i686-pc-windows-gnu"; version = "0.4.0"; + description = "Import libraries for the i686-pc-windows-gnu target. Please don't use this crate directly, depend on winapi instead."; authors = [ "Peter Atashian " ]; sha256 = "05ihkij18r4gamjpxj4gra24514can762imjzlmak5wlzidplzrp"; build = "build.rs"; @@ -2828,6 +2933,7 @@ rec { crates.winapi_x86_64_pc_windows_gnu."0.4.0" = deps: { features?(features_.winapi_x86_64_pc_windows_gnu."0.4.0" deps {}) }: buildRustCrate { crateName = "winapi-x86_64-pc-windows-gnu"; version = "0.4.0"; + description = "Import libraries for the x86_64-pc-windows-gnu target. Please don't use this crate directly, depend on winapi instead."; authors = [ "Peter Atashian " ]; sha256 = "0n1ylmlsb8yg1v583i4xy0qmqg42275flvbc51hdqjjfjcl9vlbj"; build = "build.rs"; diff --git a/ofborg/src/acl.rs b/ofborg/src/acl.rs index 62b8efb..3e08a70 100644 --- a/ofborg/src/acl.rs +++ b/ofborg/src/acl.rs @@ -1,4 +1,4 @@ -use ofborg::systems::System; +use crate::systems::System; pub struct ACL { trusted_users: Vec, diff --git a/ofborg/src/asynccmd.rs b/ofborg/src/asynccmd.rs index d301618..ec72565 100644 --- a/ofborg/src/asynccmd.rs +++ b/ofborg/src/asynccmd.rs @@ -1,18 +1,8 @@ -use std::thread; - use std::collections::HashMap; -use std::io; -use std::io::BufRead; -use std::io::BufReader; -use std::io::Read; -use std::process::Child; -use std::process::Command; -use std::process::ExitStatus; -use std::process::Stdio; -use std::sync::mpsc; -use std::sync::mpsc::sync_channel; -use std::sync::mpsc::{Receiver, SyncSender}; -use std::thread::JoinHandle; +use std::io::{self, BufRead, BufReader, Read}; +use std::process::{Child, Command, ExitStatus, Stdio}; +use std::sync::mpsc::{self, sync_channel, Receiver, SyncSender}; +use std::thread::{self, JoinHandle}; // Specifically set to fall under 1/2 of the AMQP library's // SyncSender limitation. diff --git a/ofborg/src/bin/build-faker.rs b/ofborg/src/bin/build-faker.rs index ba50615..73464a6 100644 --- a/ofborg/src/bin/build-faker.rs +++ b/ofborg/src/bin/build-faker.rs @@ -1,22 +1,12 @@ -extern crate amqp; -extern crate env_logger; -extern crate ofborg; - -extern crate hubcaps; -extern crate hyper; -extern crate hyper_native_tls; - -use std::env; - use ofborg::commentparser; use ofborg::config; use ofborg::easyamqp; -use ofborg::message::buildjob; -use ofborg::message::{Pr, Repo}; -use ofborg::notifyworker; -use ofborg::notifyworker::NotificationReceiver; +use ofborg::message::{buildjob, Pr, Repo}; +use ofborg::notifyworker::{self, NotificationReceiver}; use ofborg::worker; +use std::env; + fn main() { let cfg = config::load(env::args().nth(1).unwrap().as_ref()); ofborg::setup_log(); diff --git a/ofborg/src/bin/builder.rs b/ofborg/src/bin/builder.rs index 1e60efb..3af2af1 100644 --- a/ofborg/src/bin/builder.rs +++ b/ofborg/src/bin/builder.rs @@ -1,19 +1,12 @@ -extern crate amqp; -extern crate env_logger; -extern crate ofborg; - -#[macro_use] -extern crate log; - -use std::env; - use amqp::Basic; +use log::{log, warn}; use ofborg::checkout; use ofborg::config; -use ofborg::easyamqp; -use ofborg::easyamqp::TypedWrappers; +use ofborg::easyamqp::{self, TypedWrappers}; use ofborg::notifyworker; use ofborg::tasks; + +use std::env; use std::path::Path; fn main() { diff --git a/ofborg/src/bin/evaluation-filter.rs b/ofborg/src/bin/evaluation-filter.rs index a7d5022..672c908 100644 --- a/ofborg/src/bin/evaluation-filter.rs +++ b/ofborg/src/bin/evaluation-filter.rs @@ -1,21 +1,11 @@ -extern crate amqp; -extern crate env_logger; -extern crate ofborg; - -extern crate hubcaps; -extern crate hyper; -extern crate hyper_native_tls; - -use std::env; - use amqp::Basic; - use ofborg::config; -use ofborg::easyamqp; -use ofborg::easyamqp::TypedWrappers; +use ofborg::easyamqp::{self, TypedWrappers}; use ofborg::tasks; use ofborg::worker; +use std::env; + fn main() { let cfg = config::load(env::args().nth(1).unwrap().as_ref()); ofborg::setup_log(); diff --git a/ofborg/src/bin/github-comment-filter.rs b/ofborg/src/bin/github-comment-filter.rs index 8a6a45e..95badaf 100644 --- a/ofborg/src/bin/github-comment-filter.rs +++ b/ofborg/src/bin/github-comment-filter.rs @@ -1,21 +1,11 @@ -extern crate amqp; -extern crate env_logger; -extern crate ofborg; - -extern crate hubcaps; -extern crate hyper; -extern crate hyper_native_tls; - -use std::env; - use amqp::Basic; - use ofborg::config; -use ofborg::easyamqp; -use ofborg::easyamqp::TypedWrappers; +use ofborg::easyamqp::{self, TypedWrappers}; use ofborg::tasks; use ofborg::worker; +use std::env; + fn main() { let cfg = config::load(env::args().nth(1).unwrap().as_ref()); ofborg::setup_log(); diff --git a/ofborg/src/bin/github-comment-poster.rs b/ofborg/src/bin/github-comment-poster.rs index 3c93a1e..3f04ef2 100644 --- a/ofborg/src/bin/github-comment-poster.rs +++ b/ofborg/src/bin/github-comment-poster.rs @@ -1,21 +1,11 @@ -extern crate amqp; -extern crate env_logger; -extern crate ofborg; - -extern crate hubcaps; -extern crate hyper; -extern crate hyper_native_tls; - -use std::env; - use amqp::Basic; - use ofborg::config; -use ofborg::easyamqp; -use ofborg::easyamqp::TypedWrappers; +use ofborg::easyamqp::{self, TypedWrappers}; use ofborg::tasks; use ofborg::worker; +use std::env; + fn main() { let cfg = config::load(env::args().nth(1).unwrap().as_ref()); ofborg::setup_log(); diff --git a/ofborg/src/bin/log-message-collector.rs b/ofborg/src/bin/log-message-collector.rs index 98e6313..d0864d1 100644 --- a/ofborg/src/bin/log-message-collector.rs +++ b/ofborg/src/bin/log-message-collector.rs @@ -1,16 +1,11 @@ -extern crate amqp; -extern crate env_logger; -extern crate ofborg; +use ofborg::config; +use ofborg::easyamqp::{self, TypedWrappers}; +use ofborg::tasks; +use ofborg::worker; use std::env; use std::path::PathBuf; -use ofborg::config; -use ofborg::easyamqp; -use ofborg::easyamqp::TypedWrappers; -use ofborg::tasks; -use ofborg::worker; - fn main() { let cfg = config::load(env::args().nth(1).unwrap().as_ref()); ofborg::setup_log(); diff --git a/ofborg/src/bin/log-message-generator.rs b/ofborg/src/bin/log-message-generator.rs index d0e524f..809d082 100644 --- a/ofborg/src/bin/log-message-generator.rs +++ b/ofborg/src/bin/log-message-generator.rs @@ -1,19 +1,13 @@ -extern crate amqp; -extern crate env_logger; -extern crate ofborg; +use ofborg::config; +use ofborg::easyamqp; +use ofborg::message::{buildjob, Pr, Repo}; +use ofborg::notifyworker; +use ofborg::tasks::build; use std::env; use std::thread; use std::time::Duration; -use ofborg::message::{Pr, Repo}; - -use ofborg::config; -use ofborg::easyamqp; -use ofborg::message::buildjob; -use ofborg::notifyworker; -use ofborg::tasks::build; - fn main() { let cfg = config::load(env::args().nth(1).unwrap().as_ref()); ofborg::setup_log(); diff --git a/ofborg/src/bin/mass-rebuilder.rs b/ofborg/src/bin/mass-rebuilder.rs index 76fda1a..a29bd26 100644 --- a/ofborg/src/bin/mass-rebuilder.rs +++ b/ofborg/src/bin/mass-rebuilder.rs @@ -1,21 +1,15 @@ -extern crate amqp; -extern crate env_logger; -extern crate ofborg; -extern crate sys_info; - +use amqp::Basic; use ofborg::checkout; use ofborg::config; +use ofborg::easyamqp::{self, TypedWrappers}; +use ofborg::stats; use ofborg::tasks; +use ofborg::worker; + use std::env; use std::path::Path; use std::process; -use amqp::Basic; -use ofborg::easyamqp; -use ofborg::easyamqp::TypedWrappers; -use ofborg::stats; -use ofborg::worker; - fn main() { let memory_info = sys_info::mem_info().expect("Unable to get memory information from OS"); diff --git a/ofborg/src/bin/simple-build.rs b/ofborg/src/bin/simple-build.rs index d87f99e..8415c24 100644 --- a/ofborg/src/bin/simple-build.rs +++ b/ofborg/src/bin/simple-build.rs @@ -1,11 +1,7 @@ -extern crate amqp; -extern crate env_logger; -extern crate ofborg; - -use std::env; - use ofborg::config; use ofborg::nix; + +use std::env; use std::fs::File; use std::io::Read; use std::path::Path; diff --git a/ofborg/src/bin/stats.rs b/ofborg/src/bin/stats.rs index e9d8166..29d640b 100644 --- a/ofborg/src/bin/stats.rs +++ b/ofborg/src/bin/stats.rs @@ -1,14 +1,9 @@ -extern crate amqp; -extern crate hyper; -extern crate ofborg; - -use ofborg::{config, easyamqp, stats, tasks, worker}; -use std::env; - use amqp::Basic; use hyper::server::{Request, Response, Server}; use ofborg::easyamqp::TypedWrappers; +use ofborg::{config, easyamqp, stats, tasks, worker}; +use std::env; use std::thread; fn main() { diff --git a/ofborg/src/checkout.rs b/ofborg/src/checkout.rs index d72305a..2b4da1f 100644 --- a/ofborg/src/checkout.rs +++ b/ofborg/src/checkout.rs @@ -1,8 +1,6 @@ -use md5; -use ofborg::clone; -use ofborg::clone::GitClonable; -use std::ffi::OsStr; -use std::ffi::OsString; +use crate::clone::{self, GitClonable}; + +use std::ffi::{OsStr, OsString}; use std::fs; use std::io::{Error, ErrorKind}; use std::path::{Path, PathBuf}; @@ -253,7 +251,7 @@ impl clone::GitClonable for CachedProject { #[cfg(test)] mod tests { use super::*; - use ofborg::test_scratch::TestScratch; + use crate::test_scratch::TestScratch; use std::path::{Path, PathBuf}; use std::process::{Command, Stdio}; diff --git a/ofborg/src/clone.rs b/ofborg/src/clone.rs index 2b20110..8b762b0 100644 --- a/ofborg/src/clone.rs +++ b/ofborg/src/clone.rs @@ -1,4 +1,5 @@ use fs2::FileExt; + use std::ffi::OsStr; use std::fs; use std::io::{Error, ErrorKind}; diff --git a/ofborg/src/commentparser.rs b/ofborg/src/commentparser.rs index f7b8896..16eaa52 100644 --- a/ofborg/src/commentparser.rs +++ b/ofborg/src/commentparser.rs @@ -16,16 +16,21 @@ pub fn parse(text: &str) -> Option> { } } -named!(normal_token(CompleteStr) -> CompleteStr, - verify!(take_while1!(|c: char| c.is_ascii_graphic()), - |s: CompleteStr| !s.0.eq_ignore_ascii_case("@grahamcofborg")) +named!( + normal_token(CompleteStr) -> CompleteStr, + verify!( + take_while1!(|c: char| c.is_ascii_graphic()), + |s: CompleteStr| !s.0.eq_ignore_ascii_case("@grahamcofborg") + ) ); -named!(parse_line_impl(CompleteStr) -> Option>, alt!( - do_parse!( - res: ws!(many1!(ws!(preceded!( - alt!(tag_no_case!("@grahamcofborg") | tag_no_case!("@ofborg")), - alt!( - ws!(do_parse!( +named!( + parse_line_impl(CompleteStr) -> Option>, + alt!( + do_parse!( + res: ws!(many1!(ws!(preceded!( + alt!(tag_no_case!("@grahamcofborg") | tag_no_case!("@ofborg")), + alt!( + ws!(do_parse!( tag!("build") >> pkgs: ws!(many1!(map!(normal_token, |s| s.0.to_owned()))) >> (Some(Instruction::Build(Subset::Nixpkgs, pkgs))) @@ -40,13 +45,12 @@ named!(parse_line_impl(CompleteStr) -> Option>, alt!( // it would be better to return an error so that the caller would know one of the // commands couldn't be handled? value!(None, many_till!(take!(1), tag_no_case!("@grahamcofborg"))) - ) - )))) >> - eof!() >> - (Some(res.into_iter().filter_map(|x| x).collect())) - ) | - value!(None) -)); + ) + )))) >> eof!() + >> (Some(res.into_iter().filter_map(|x| x).collect())) + ) | value!(None) + ) +); pub fn parse_line(text: &str) -> Option> { match parse_line_impl(CompleteStr(text)) { diff --git a/ofborg/src/commitstatus.rs b/ofborg/src/commitstatus.rs index 7ac5379..7f0d70f 100644 --- a/ofborg/src/commitstatus.rs +++ b/ofborg/src/commitstatus.rs @@ -1,8 +1,3 @@ -extern crate amqp; -extern crate env_logger; - -use hubcaps; - pub struct CommitStatus<'a> { api: hubcaps::statuses::Statuses<'a>, sha: String, diff --git a/ofborg/src/config.rs b/ofborg/src/config.rs index 0854743..c79a0dc 100644 --- a/ofborg/src/config.rs +++ b/ofborg/src/config.rs @@ -1,10 +1,11 @@ +use crate::acl; +use crate::nix::Nix; + use hubcaps::{Credentials, Github, InstallationTokenGenerator, JWTCredentials}; use hyper::net::HttpsConnector; use hyper::Client; use hyper_native_tls::NativeTlsClient; -use nix::Nix; -use ofborg::acl; -use serde_json; + use std::collections::HashMap; use std::fs::File; use std::io::Read; diff --git a/ofborg/src/easyamqp.rs b/ofborg/src/easyamqp.rs index 68f0fe3..412d753 100644 --- a/ofborg/src/easyamqp.rs +++ b/ofborg/src/easyamqp.rs @@ -1,7 +1,7 @@ -use amqp; +use crate::config::RabbitMQConfig; +use crate::ofborg; + use amqp::Basic; -use ofborg; -use ofborg::config::RabbitMQConfig; pub struct ConsumeConfig { /// Specifies the name of the queue to consume from. diff --git a/ofborg/src/evalchecker.rs b/ofborg/src/evalchecker.rs index acf981a..d34b5ab 100644 --- a/ofborg/src/evalchecker.rs +++ b/ofborg/src/evalchecker.rs @@ -1,7 +1,5 @@ -extern crate amqp; -extern crate env_logger; +use crate::nix; -use ofborg::nix; use std::fs::File; use std::path::Path; diff --git a/ofborg/src/ghevent/issuecomment.rs b/ofborg/src/ghevent/issuecomment.rs index 14429b8..63ae601 100644 --- a/ofborg/src/ghevent/issuecomment.rs +++ b/ofborg/src/ghevent/issuecomment.rs @@ -1,4 +1,4 @@ -use ofborg::ghevent::{Comment, Issue, Repository}; +use crate::ghevent::{Comment, Issue, Repository}; #[derive(Serialize, Deserialize, Debug)] pub struct IssueComment { diff --git a/ofborg/src/ghevent/pullrequestevent.rs b/ofborg/src/ghevent/pullrequestevent.rs index 38b6361..3c15c50 100644 --- a/ofborg/src/ghevent/pullrequestevent.rs +++ b/ofborg/src/ghevent/pullrequestevent.rs @@ -1,4 +1,4 @@ -use ofborg::ghevent::Repository; +use crate::ghevent::Repository; #[derive(Serialize, Deserialize)] pub struct PullRequestEvent { diff --git a/ofborg/src/lib.rs b/ofborg/src/lib.rs index d8abbb8..c752a38 100644 --- a/ofborg/src/lib.rs +++ b/ofborg/src/lib.rs @@ -7,9 +7,6 @@ #[macro_use] extern crate serde_derive; -extern crate serde; - -extern crate serde_json; #[macro_use] extern crate log; @@ -17,20 +14,6 @@ extern crate log; #[macro_use] extern crate nom; -extern crate amqp; -extern crate chrono; -extern crate either; -extern crate env_logger; -extern crate fs2; -extern crate hubcaps; -extern crate hyper; -extern crate hyper_native_tls; -extern crate lru_cache; -extern crate md5; -extern crate separator; -extern crate tempfile; -extern crate uuid; - use std::env; pub mod acl; @@ -61,29 +44,29 @@ pub mod worker; pub mod writetoline; pub mod ofborg { - pub use acl; - pub use asynccmd; - pub use checkout; - pub use clone; - pub use commentparser; - pub use commitstatus; - pub use config; - pub use easyamqp; - pub use evalchecker; - pub use files; - pub use ghevent; - pub use locks; - pub use message; - pub use nix; - pub use notifyworker; - pub use outpathdiff; - pub use stats; - pub use systems; - pub use tagger; - pub use tasks; - pub use test_scratch; - pub use worker; - pub use writetoline; + pub use crate::acl; + pub use crate::asynccmd; + pub use crate::checkout; + pub use crate::clone; + pub use crate::commentparser; + pub use crate::commitstatus; + pub use crate::config; + pub use crate::easyamqp; + pub use crate::evalchecker; + pub use crate::files; + pub use crate::ghevent; + pub use crate::locks; + pub use crate::message; + pub use crate::nix; + pub use crate::notifyworker; + pub use crate::outpathdiff; + pub use crate::stats; + pub use crate::systems; + pub use crate::tagger; + pub use crate::tasks; + pub use crate::test_scratch; + pub use crate::worker; + pub use crate::writetoline; pub const VERSION: &str = env!("CARGO_PKG_VERSION"); diff --git a/ofborg/src/locks.rs b/ofborg/src/locks.rs index f956642..d1d2ee4 100644 --- a/ofborg/src/locks.rs +++ b/ofborg/src/locks.rs @@ -1,4 +1,5 @@ use fs2::FileExt; + use std::fs; use std::io::Error; use std::path::PathBuf; diff --git a/ofborg/src/maintainers.rs b/ofborg/src/maintainers.rs index be9899c..8d1090c 100644 --- a/ofborg/src/maintainers.rs +++ b/ofborg/src/maintainers.rs @@ -1,8 +1,10 @@ -use ofborg::nix::Nix; +use crate::nix::Nix; + +use tempfile::NamedTempFile; + use std::collections::{HashMap, HashSet}; use std::io::Write; use std::path::Path; -use tempfile::NamedTempFile; #[derive(Deserialize, Debug, Eq, PartialEq)] pub struct ImpactedMaintainers(HashMap>); @@ -125,9 +127,9 @@ impl std::fmt::Display for ImpactedMaintainers { #[cfg(test)] mod tests { use super::*; - use checkout::cached_cloner; - use clone::GitClonable; - use ofborg::test_scratch::TestScratch; + use crate::checkout::cached_cloner; + use crate::clone::GitClonable; + use crate::test_scratch::TestScratch; use std::env; use std::ffi::OsStr; use std::path::{Path, PathBuf}; diff --git a/ofborg/src/message/buildjob.rs b/ofborg/src/message/buildjob.rs index 88362a9..f9e73d7 100644 --- a/ofborg/src/message/buildjob.rs +++ b/ofborg/src/message/buildjob.rs @@ -1,6 +1,5 @@ -use ofborg::commentparser::Subset; -use ofborg::message::{Pr, Repo}; -use serde_json; +use crate::commentparser::Subset; +use crate::message::{Pr, Repo}; #[derive(Serialize, Deserialize, Debug)] pub struct BuildJob { diff --git a/ofborg/src/message/buildresult.rs b/ofborg/src/message/buildresult.rs index 56953ba..acb85c2 100644 --- a/ofborg/src/message/buildresult.rs +++ b/ofborg/src/message/buildresult.rs @@ -1,5 +1,6 @@ +use crate::message::{Pr, Repo}; + use hubcaps::checks::Conclusion; -use ofborg::message::{Pr, Repo}; #[derive(Serialize, Deserialize, Clone, Debug, PartialEq)] pub enum BuildStatus { diff --git a/ofborg/src/message/evaluationjob.rs b/ofborg/src/message/evaluationjob.rs index 0042acd..e2d9358 100644 --- a/ofborg/src/message/evaluationjob.rs +++ b/ofborg/src/message/evaluationjob.rs @@ -1,6 +1,5 @@ -use ofborg::message::{Pr, Repo}; -use ofborg::worker; -use serde_json; +use crate::message::{Pr, Repo}; +use crate::worker; pub fn from(data: &[u8]) -> Result { serde_json::from_slice(&data) diff --git a/ofborg/src/nix.rs b/ofborg/src/nix.rs index ff9276e..0a156f4 100644 --- a/ofborg/src/nix.rs +++ b/ofborg/src/nix.rs @@ -1,17 +1,16 @@ -use ofborg::asynccmd::{AsyncCmd, SpawnedAsyncCmd}; -use ofborg::partition_result; +use crate::asynccmd::{AsyncCmd, SpawnedAsyncCmd}; +use crate::ofborg::partition_result; + +use tempfile::tempfile; + use std::collections::HashMap; use std::env; use std::ffi::OsStr; use std::fmt; use std::fs; -use std::io::BufRead; -use std::io::BufReader; -use std::io::Seek; -use std::io::SeekFrom; +use std::io::{BufRead, BufReader, Seek, SeekFrom}; use std::path::Path; use std::process::{Command, Stdio}; -use tempfile::tempfile; #[derive(Clone, Copy, Debug, PartialEq)] pub enum File { diff --git a/ofborg/src/nixenv.rs b/ofborg/src/nixenv.rs index 5b97a5d..80afa98 100644 --- a/ofborg/src/nixenv.rs +++ b/ofborg/src/nixenv.rs @@ -1,16 +1,11 @@ -/// Evaluates the expression like Hydra would, with regards to -/// architecture support and recursed packages. +//! Evaluates the expression like Hydra would, with regards to +//! architecture support and recursed packages. +use crate::nix; use crate::nixstats::EvaluationStats; use crate::outpathdiff; -use ofborg::nix; -use serde_json; -use std::fs; -use std::fs::File; -use std::io::Read; -use std::io::Seek; -use std::io::SeekFrom; -use std::io::Write; -use std::io::{BufRead, BufReader}; + +use std::fs::{self, File}; +use std::io::{BufRead, BufReader, Read, Seek, SeekFrom, Write}; use std::path::PathBuf; pub struct HydraNixEnv { @@ -42,11 +37,11 @@ impl HydraNixEnv { .lines() .collect::, _>>()? .into_iter() - .filter(|msg| msg.trim().len() > 0) + .filter(|msg| !msg.trim().is_empty()) .filter(|line| !nix::is_user_setting_warning(line)) .collect::>(); - if evaluation_errors.len() > 0 { + if !evaluation_errors.is_empty() { return Err(Error::UncleanEvaluation(evaluation_errors)); } @@ -105,7 +100,8 @@ impl HydraNixEnv { let (status, stdout, stderr) = self.nix.run_stderr_stdout(cmd); let stats = File::open(self.outpath_stats_path()); - return (status, stdout, stderr, stats); + + (status, stdout, stderr, stats) } } diff --git a/ofborg/src/nixstats.rs b/ofborg/src/nixstats.rs index e53a59a..52d6a9a 100644 --- a/ofborg/src/nixstats.rs +++ b/ofborg/src/nixstats.rs @@ -1,5 +1,6 @@ +//! Statistics emitted by Nix when NIX_SHOW_STATS=1 use separator::Separatable; -/// Statistics emitted by Nix when NIX_SHOW_STATS=1 + use std::collections::HashMap; #[derive(Deserialize)] diff --git a/ofborg/src/notifyworker.rs b/ofborg/src/notifyworker.rs index aa125be..08193f1 100644 --- a/ofborg/src/notifyworker.rs +++ b/ofborg/src/notifyworker.rs @@ -1,8 +1,9 @@ +use crate::worker::Action; + use amqp::protocol::basic::{BasicProperties, Deliver}; -use amqp::Basic; -use amqp::{Channel, Consumer}; +use amqp::{Basic, Channel, Consumer}; + use std::marker::Send; -use worker::Action; pub struct NotifyWorker { internal: T, diff --git a/ofborg/src/outpathdiff.rs b/ofborg/src/outpathdiff.rs index 668367c..86de6ea 100644 --- a/ofborg/src/outpathdiff.rs +++ b/ofborg/src/outpathdiff.rs @@ -1,10 +1,9 @@ -use crate::nixenv::Error as NixEnvError; -use crate::nixenv::HydraNixEnv; +use crate::nix; +use crate::nixenv::{Error as NixEnvError, HydraNixEnv}; use crate::nixstats::{EvaluationStats, EvaluationStatsDiff}; -use ofborg::nix; + use std::collections::{HashMap, HashSet}; use std::io::BufRead; - use std::path::PathBuf; pub struct OutPathDiff { diff --git a/ofborg/src/stats.rs b/ofborg/src/stats.rs index 86720e7..c9bde24 100644 --- a/ofborg/src/stats.rs +++ b/ofborg/src/stats.rs @@ -1,7 +1,5 @@ use amqp::protocol::basic::BasicProperties; -use amqp::Basic; -use amqp::Channel; -use serde_json; +use amqp::{Basic, Channel}; include!(concat!(env!("OUT_DIR"), "/events.rs")); diff --git a/ofborg/src/tagger.rs b/ofborg/src/tagger.rs index b2d0d2b..c20d30a 100644 --- a/ofborg/src/tagger.rs +++ b/ofborg/src/tagger.rs @@ -1,6 +1,7 @@ use crate::maintainers::{Maintainer, MaintainersByPackage}; -use ofborg::outpathdiff::PackageArch; -use ofborg::tasks; +use crate::outpathdiff::PackageArch; +use crate::tasks; + use std::collections::HashMap; pub struct StdenvTagger { diff --git a/ofborg/src/tasks/build.rs b/ofborg/src/tasks/build.rs index f5ed3d0..bdf8158 100644 --- a/ofborg/src/tasks/build.rs +++ b/ofborg/src/tasks/build.rs @@ -1,20 +1,15 @@ -extern crate amqp; -extern crate env_logger; -extern crate uuid; - -use uuid::Uuid; - -use ofborg::checkout; -use ofborg::commentparser; -use ofborg::message::buildjob; -use ofborg::message::buildlogmsg; -use ofborg::message::buildresult::{BuildResult, BuildStatus, V1Tag}; -use ofborg::nix; -use std::collections::VecDeque; +use crate::checkout; +use crate::commentparser; +use crate::message::buildresult::{BuildResult, BuildStatus, V1Tag}; +use crate::message::{buildjob, buildlogmsg}; +use crate::nix; +use crate::notifyworker; +use crate::worker; use amqp::protocol::basic::{BasicProperties, Deliver}; -use ofborg::notifyworker; -use ofborg::worker; +use uuid::Uuid; + +use std::collections::VecDeque; pub struct BuildWorker { cloner: checkout::CachedCloner, @@ -394,9 +389,9 @@ impl notifyworker::SimpleNotifyWorker for BuildWorker { #[cfg(test)] mod tests { use super::*; - use notifyworker::SimpleNotifyWorker; - use ofborg::message::{Pr, Repo}; - use ofborg::test_scratch::TestScratch; + use crate::message::{Pr, Repo}; + use crate::notifyworker::SimpleNotifyWorker; + use crate::test_scratch::TestScratch; use std::env; use std::path::{Path, PathBuf}; use std::process::{Command, Stdio}; diff --git a/ofborg/src/tasks/eval/generic.rs b/ofborg/src/tasks/eval/generic.rs index b9ee1e2..bdcfdfe 100644 --- a/ofborg/src/tasks/eval/generic.rs +++ b/ofborg/src/tasks/eval/generic.rs @@ -1,8 +1,9 @@ -use ofborg::checkout::CachedProjectCo; -use ofborg::commitstatus::CommitStatus; -use ofborg::evalchecker::EvalChecker; +use crate::checkout::CachedProjectCo; +use crate::commitstatus::CommitStatus; +use crate::evalchecker::EvalChecker; +use crate::tasks::eval::{EvaluationComplete, EvaluationStrategy, StepResult}; + use std::path::Path; -use tasks::eval::{EvaluationComplete, EvaluationStrategy, StepResult}; #[derive(Default)] pub struct GenericStrategy {} diff --git a/ofborg/src/tasks/eval/mod.rs b/ofborg/src/tasks/eval/mod.rs index 3ed2376..4e32ee6 100644 --- a/ofborg/src/tasks/eval/mod.rs +++ b/ofborg/src/tasks/eval/mod.rs @@ -1,14 +1,17 @@ -pub mod stdenvs; -pub use self::stdenvs::Stdenvs; -mod nixpkgs; -pub use self::nixpkgs::NixpkgsStrategy; mod generic; +mod nixpkgs; +pub mod stdenvs; + pub use self::generic::GenericStrategy; +pub use self::nixpkgs::NixpkgsStrategy; +pub use self::stdenvs::Stdenvs; +use crate::checkout::CachedProjectCo; +use crate::commitstatus::{CommitStatus, CommitStatusError}; +use crate::evalchecker::EvalChecker; +use crate::message::buildjob::BuildJob; + use hubcaps::checks::CheckRunOptions; -use ofborg::checkout::CachedProjectCo; -use ofborg::commitstatus::{CommitStatus, CommitStatusError}; -use ofborg::evalchecker::EvalChecker; -use ofborg::message::buildjob::BuildJob; + use std::path::Path; pub trait EvaluationStrategy { diff --git a/ofborg/src/tasks/eval/nixpkgs.rs b/ofborg/src/tasks/eval/nixpkgs.rs index baa3c80..807e8f1 100644 --- a/ofborg/src/tasks/eval/nixpkgs.rs +++ b/ofborg/src/tasks/eval/nixpkgs.rs @@ -1,30 +1,30 @@ -use crate::maintainers; -use crate::maintainers::ImpactedMaintainers; +use crate::checkout::CachedProjectCo; +use crate::commentparser::Subset; +use crate::commitstatus::CommitStatus; +use crate::evalchecker::EvalChecker; +use crate::maintainers::{self, ImpactedMaintainers}; +use crate::message::buildjob::BuildJob; +use crate::message::evaluationjob::EvaluationJob; +use crate::nix::{self, Nix}; use crate::nixenv::HydraNixEnv; +use crate::outpathdiff::{OutPathDiff, PackageArch}; +use crate::tagger::{ + MaintainerPRTagger, PathsTagger, PkgsAddedRemovedTagger, RebuildTagger, StdenvTagger, +}; +use crate::tasks::eval::{ + stdenvs::Stdenvs, Error, EvaluationComplete, EvaluationStrategy, StepResult, +}; +use crate::tasks::evaluate::{make_gist, update_labels}; + use chrono::Utc; use hubcaps::checks::{CheckRunOptions, CheckRunState, Conclusion, Output}; use hubcaps::gists::Gists; use hubcaps::issues::{Issue, IssueRef}; use hubcaps::repositories::Repository; -use ofborg::checkout::CachedProjectCo; -use ofborg::commentparser::Subset; -use ofborg::commitstatus::CommitStatus; -use ofborg::evalchecker::EvalChecker; -use ofborg::message::buildjob::BuildJob; -use ofborg::message::evaluationjob::EvaluationJob; -use ofborg::nix; -use ofborg::nix::Nix; -use ofborg::outpathdiff::{OutPathDiff, PackageArch}; -use ofborg::tagger::{MaintainerPRTagger, PathsTagger, RebuildTagger}; -use ofborg::tagger::{PkgsAddedRemovedTagger, StdenvTagger}; -use ofborg::tasks::eval::{ - stdenvs::Stdenvs, Error, EvaluationComplete, EvaluationStrategy, StepResult, -}; -use ofborg::tasks::evaluate::update_labels; +use uuid::Uuid; + use std::collections::HashMap; use std::path::Path; -use tasks::evaluate::make_gist; -use uuid::Uuid; pub struct NixpkgsStrategy<'a> { job: &'a EvaluationJob, diff --git a/ofborg/src/tasks/eval/stdenvs.rs b/ofborg/src/tasks/eval/stdenvs.rs index b54cf7c..c5aa857 100644 --- a/ofborg/src/tasks/eval/stdenvs.rs +++ b/ofborg/src/tasks/eval/stdenvs.rs @@ -1,5 +1,6 @@ -use ofborg::files::file_to_str; -use ofborg::nix; +use crate::files::file_to_str; +use crate::nix; + use std::path::PathBuf; enum StdenvFrom { diff --git a/ofborg/src/tasks/evaluate.rs b/ofborg/src/tasks/evaluate.rs index 4f7362b..95a59b9 100644 --- a/ofborg/src/tasks/evaluate.rs +++ b/ofborg/src/tasks/evaluate.rs @@ -1,28 +1,25 @@ /// This is what evaluates every pull-request -extern crate amqp; -extern crate env_logger; -extern crate uuid; +use crate::acl::ACL; +use crate::checkout; +use crate::commitstatus::{CommitStatus, CommitStatusError}; +use crate::config::GithubAppVendingMachine; +use crate::files::file_to_str; +use crate::message::{buildjob, evaluationjob}; +use crate::nix; +use crate::stats::{self, Event}; +use crate::systems; +use crate::tasks::eval; +use crate::worker; + use amqp::protocol::basic::{BasicProperties, Deliver}; -use hubcaps; use hubcaps::checks::CheckRunOptions; use hubcaps::gists::Gists; use hubcaps::issues::Issue; -use ofborg::acl::ACL; -use ofborg::checkout; -use ofborg::commitstatus::{CommitStatus, CommitStatusError}; -use ofborg::config::GithubAppVendingMachine; -use ofborg::files::file_to_str; -use ofborg::message::{buildjob, evaluationjob}; -use ofborg::nix; -use ofborg::stats; -use ofborg::stats::Event; -use ofborg::systems; -use ofborg::worker; + use std::collections::HashMap; use std::path::Path; use std::sync::RwLock; use std::time::Instant; -use tasks::eval; pub struct EvaluationWorker { cloner: checkout::CachedCloner, @@ -126,6 +123,7 @@ struct OneEval<'a, E> { } impl<'a, E: stats::SysEvents + 'static> OneEval<'a, E> { + #[allow(clippy::too_many_arguments)] fn new( client_app: &'a hubcaps::Github, client_legacy: &'a hubcaps::Github, @@ -236,7 +234,7 @@ impl<'a, E: stats::SysEvents + 'static> OneEval<'a, E> { } } - return self.actions().skip(&self.job); + self.actions().skip(&self.job) } fn evaluate_job(&mut self) -> Result { diff --git a/ofborg/src/tasks/evaluationfilter.rs b/ofborg/src/tasks/evaluationfilter.rs index 82feec8..886e65a 100644 --- a/ofborg/src/tasks/evaluationfilter.rs +++ b/ofborg/src/tasks/evaluationfilter.rs @@ -1,13 +1,9 @@ -extern crate amqp; -extern crate env_logger; - -use ofborg::acl; -use ofborg::ghevent; -use serde_json; +use crate::acl; +use crate::ghevent; +use crate::message::{evaluationjob, Pr, Repo}; +use crate::worker; use amqp::protocol::basic::{BasicProperties, Deliver}; -use ofborg::message::{evaluationjob, Pr, Repo}; -use ofborg::worker; pub struct EvaluationFilterWorker { acl: acl::ACL, @@ -107,7 +103,7 @@ impl worker::SimpleWorker for EvaluationFilterWorker { #[cfg(test)] mod tests { use super::*; - use worker::SimpleWorker; + use crate::worker::SimpleWorker; #[test] fn changed_base() { diff --git a/ofborg/src/tasks/githubcommentfilter.rs b/ofborg/src/tasks/githubcommentfilter.rs index 79e76e3..28b0859 100644 --- a/ofborg/src/tasks/githubcommentfilter.rs +++ b/ofborg/src/tasks/githubcommentfilter.rs @@ -1,17 +1,11 @@ -extern crate amqp; -extern crate env_logger; -extern crate uuid; - -use ofborg::acl; -use ofborg::ghevent; -use serde_json; -use uuid::Uuid; +use crate::acl; +use crate::commentparser; +use crate::ghevent; +use crate::message::{buildjob, evaluationjob, Pr, Repo}; +use crate::worker; use amqp::protocol::basic::{BasicProperties, Deliver}; -use hubcaps; -use ofborg::commentparser; -use ofborg::message::{buildjob, evaluationjob, Pr, Repo}; -use ofborg::worker; +use uuid::Uuid; pub struct GitHubCommentWorker { acl: acl::ACL, diff --git a/ofborg/src/tasks/githubcommentposter.rs b/ofborg/src/tasks/githubcommentposter.rs index 34871a7..6a27dc1 100644 --- a/ofborg/src/tasks/githubcommentposter.rs +++ b/ofborg/src/tasks/githubcommentposter.rs @@ -1,16 +1,12 @@ -extern crate amqp; -extern crate env_logger; - -use serde_json; +use crate::config::GithubAppVendingMachine; +use crate::message::buildjob::{BuildJob, QueuedBuildJobs}; +use crate::message::buildresult::{BuildResult, BuildStatus, LegacyBuildResult}; +use crate::message::Repo; +use crate::worker; use amqp::protocol::basic::{BasicProperties, Deliver}; use chrono::{DateTime, Utc}; use hubcaps::checks::{CheckRunOptions, CheckRunState, Conclusion, Output}; -use message::buildjob::{BuildJob, QueuedBuildJobs}; -use ofborg::config::GithubAppVendingMachine; -use ofborg::message::buildresult::{BuildResult, BuildStatus, LegacyBuildResult}; -use ofborg::message::Repo; -use ofborg::worker; pub struct GitHubCommentPoster { github_vend: GithubAppVendingMachine, @@ -210,8 +206,8 @@ fn list_segment(name: &str, things: &[String]) -> Vec { #[cfg(test)] mod tests { use super::*; + use crate::message::{Pr, Repo}; use chrono::TimeZone; - use message::{Pr, Repo}; #[test] pub fn test_queued_build() { diff --git a/ofborg/src/tasks/log_message_collector.rs b/ofborg/src/tasks/log_message_collector.rs index d13ac8b..8405a66 100644 --- a/ofborg/src/tasks/log_message_collector.rs +++ b/ofborg/src/tasks/log_message_collector.rs @@ -1,17 +1,14 @@ -extern crate amqp; -extern crate env_logger; -use lru_cache::LruCache; -use serde_json; -use std::fs; -use std::fs::{File, OpenOptions}; -use std::io::Write; -use std::path::{Component, PathBuf}; +use crate::message::buildlogmsg::{BuildLogMsg, BuildLogStart}; +use crate::message::buildresult::BuildResult; +use crate::worker; +use crate::writetoline::LineWriter; use amqp::protocol::basic::{BasicProperties, Deliver}; -use ofborg::message::buildlogmsg::{BuildLogMsg, BuildLogStart}; -use ofborg::message::buildresult::BuildResult; -use ofborg::worker; -use ofborg::writetoline::LineWriter; +use lru_cache::LruCache; + +use std::fs::{self, File, OpenOptions}; +use std::io::Write; +use std::path::{Component, PathBuf}; #[derive(Eq, PartialEq, Hash, Debug, Clone)] pub struct LogFrom { @@ -237,10 +234,10 @@ impl worker::SimpleWorker for LogMessageCollector { #[cfg(test)] mod tests { use super::*; - use ofborg::message::buildresult::{BuildStatus, V1Tag}; - use ofborg::message::{Pr, Repo}; - use ofborg::test_scratch::TestScratch; - use ofborg::worker::SimpleWorker; + use crate::message::buildresult::{BuildStatus, V1Tag}; + use crate::message::{Pr, Repo}; + use crate::test_scratch::TestScratch; + use crate::worker::SimpleWorker; use std::io::Read; use std::path::PathBuf; diff --git a/ofborg/src/tasks/statscollector.rs b/ofborg/src/tasks/statscollector.rs index 24c7186..a28fa11 100644 --- a/ofborg/src/tasks/statscollector.rs +++ b/ofborg/src/tasks/statscollector.rs @@ -1,10 +1,7 @@ -extern crate amqp; -extern crate env_logger; +use crate::stats; +use crate::worker; use amqp::protocol::basic::{BasicProperties, Deliver}; -use ofborg::stats; -use ofborg::worker; -use serde_json; pub struct StatCollectorWorker { events: E, diff --git a/ofborg/src/worker.rs b/ofborg/src/worker.rs index eb75f61..afa4069 100644 --- a/ofborg/src/worker.rs +++ b/ofborg/src/worker.rs @@ -1,8 +1,7 @@ use amqp::protocol::basic::{BasicProperties, Deliver}; -use amqp::Basic; -use amqp::{Channel, Consumer}; +use amqp::{Basic, Channel, Consumer}; use serde::Serialize; -use serde_json; + use std::marker::Send; pub struct Worker { diff --git a/ofborg/src/writetoline.rs b/ofborg/src/writetoline.rs index cbe8f68..a1a3118 100644 --- a/ofborg/src/writetoline.rs +++ b/ofborg/src/writetoline.rs @@ -1,9 +1,5 @@ use std::fs::File; -use std::io::BufRead; -use std::io::BufReader; -use std::io::Seek; -use std::io::SeekFrom; -use std::io::Write; +use std::io::{BufRead, BufReader, Seek, SeekFrom, Write}; pub struct LineWriter { file: File, @@ -84,7 +80,7 @@ impl LineWriter { #[cfg(test)] mod tests { use super::*; - use ofborg::test_scratch::TestScratch; + use crate::test_scratch::TestScratch; use std::fs::File; use std::fs::OpenOptions; use std::io::Read;