Skip to content

Commit

Permalink
Bazel ic_bitcoin_validation
Browse files Browse the repository at this point in the history
  • Loading branch information
tthebst committed May 11, 2022
1 parent 6adbf97 commit 592c25e
Show file tree
Hide file tree
Showing 5 changed files with 311 additions and 17 deletions.
282 changes: 268 additions & 14 deletions Cargo.Bazel.lock
@@ -1,5 +1,5 @@
{
"checksum": "f2b0a910e18b58a62c8560d2724819e815806c66ce80f5ec04ddd8f96f154343",
"checksum": "eea475a53f6dc5d2ba86149132a2a171d8e1b95393190cc2e1102832c205db5e",
"crates": {
"adler 1.0.2": {
"name": "adler",
Expand Down Expand Up @@ -747,6 +747,42 @@
},
"license": "MIT/Apache-2.0"
},
"bech32 0.8.1": {
"name": "bech32",
"version": "0.8.1",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/bech32/0.8.1/download",
"sha256": "cf9ff0bbfd639f15c74af777d81383cf53efb7c93613f6cab67c6c11e05bbf8b"
}
},
"targets": [
{
"Library": {
"crate_name": "bech32",
"crate_root": "src/lib.rs",
"srcs": {
"include": [
"**/*.rs"
],
"exclude": []
}
}
}
],
"library_target_name": "bech32",
"common_attrs": {
"compile_data_glob": [
"**"
],
"crate_features": [
"std"
],
"edition": "2015",
"version": "0.8.1"
},
"license": "MIT"
},
"beef 0.5.1": {
"name": "beef",
"version": "0.5.1",
Expand Down Expand Up @@ -1018,6 +1054,97 @@
},
"license": "MIT/Apache-2.0"
},
"bitcoin 0.27.1": {
"name": "bitcoin",
"version": "0.27.1",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/bitcoin/0.27.1/download",
"sha256": "9a41df6ad9642c5c15ae312dd3d074de38fd3eb7cc87ad4ce10f90292a83fe4d"
}
},
"targets": [
{
"Library": {
"crate_name": "bitcoin",
"crate_root": "src/lib.rs",
"srcs": {
"include": [
"**/*.rs"
],
"exclude": []
}
}
}
],
"library_target_name": "bitcoin",
"common_attrs": {
"compile_data_glob": [
"**"
],
"crate_features": [
"default",
"secp-recovery",
"std"
],
"deps": {
"common": [
{
"id": "bech32 0.8.1",
"target": "bech32"
},
{
"id": "bitcoin_hashes 0.10.0",
"target": "bitcoin_hashes"
},
{
"id": "secp256k1 0.20.3",
"target": "secp256k1"
}
],
"selects": {}
},
"edition": "2015",
"version": "0.27.1"
},
"license": "CC0-1.0"
},
"bitcoin_hashes 0.10.0": {
"name": "bitcoin_hashes",
"version": "0.10.0",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/bitcoin_hashes/0.10.0/download",
"sha256": "006cc91e1a1d99819bc5b8214be3555c1f0611b169f527a1fdc54ed1f2b745b0"
}
},
"targets": [
{
"Library": {
"crate_name": "bitcoin_hashes",
"crate_root": "src/lib.rs",
"srcs": {
"include": [
"**/*.rs"
],
"exclude": []
}
}
}
],
"library_target_name": "bitcoin_hashes",
"common_attrs": {
"compile_data_glob": [
"**"
],
"crate_features": [
"std"
],
"edition": "2015",
"version": "0.10.0"
},
"license": "CC0-1.0"
},
"bitflags 1.3.2": {
"name": "bitflags",
"version": "1.3.2",
Expand Down Expand Up @@ -1773,13 +1900,13 @@
},
"license": "MIT"
},
"clap 3.1.17": {
"clap 3.1.18": {
"name": "clap",
"version": "3.1.17",
"version": "3.1.18",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/clap/3.1.17/download",
"sha256": "47582c09be7c8b32c0ab3a6181825ababb713fde6fff20fc573a3870dd45c6a0"
"url": "https://crates.io/api/v1/crates/clap/3.1.18/download",
"sha256": "d2dbdf4bdacb33466e854ce889eee8dfd5729abf7ccd7664d0a2d60cd384440b"
}
},
"targets": [
Expand Down Expand Up @@ -1866,23 +1993,23 @@
"proc_macro_deps": {
"common": [
{
"id": "clap_derive 3.1.7",
"id": "clap_derive 3.1.18",
"target": "clap_derive"
}
],
"selects": {}
},
"version": "3.1.17"
"version": "3.1.18"
},
"license": "MIT OR Apache-2.0"
},
"clap_derive 3.1.7": {
"clap_derive 3.1.18": {
"name": "clap_derive",
"version": "3.1.7",
"version": "3.1.18",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/clap_derive/3.1.7/download",
"sha256": "a3aab4734e083b809aaf5794e14e756d1c798d2c69c7f7de7a09a2f5214993c1"
"url": "https://crates.io/api/v1/crates/clap_derive/3.1.18/download",
"sha256": "25320346e922cffe59c0bbc5410c8d8784509efb321488971081313cb1e1a33c"
}
},
"targets": [
Expand Down Expand Up @@ -1933,7 +2060,7 @@
"selects": {}
},
"edition": "2018",
"version": "3.1.7"
"version": "3.1.18"
},
"license": "MIT OR Apache-2.0"
},
Expand Down Expand Up @@ -2909,6 +3036,10 @@
"id": "bincode 1.3.3",
"target": "bincode"
},
{
"id": "bitcoin 0.27.1",
"target": "bitcoin"
},
{
"id": "bitflags 1.3.2",
"target": "bitflags"
Expand All @@ -2922,13 +3053,17 @@
"target": "chrono"
},
{
"id": "clap 3.1.17",
"id": "clap 3.1.18",
"target": "clap"
},
{
"id": "criterion 0.3.5",
"target": "criterion"
},
{
"id": "csv 1.1.6",
"target": "csv"
},
{
"id": "cvt 0.1.1",
"target": "cvt"
Expand Down Expand Up @@ -9913,6 +10048,125 @@
},
"license": "MIT/Apache-2.0"
},
"secp256k1 0.20.3": {
"name": "secp256k1",
"version": "0.20.3",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/secp256k1/0.20.3/download",
"sha256": "97d03ceae636d0fed5bae6a7f4f664354c5f4fcedf6eef053fef17e49f837d0a"
}
},
"targets": [
{
"Library": {
"crate_name": "secp256k1",
"crate_root": "src/lib.rs",
"srcs": {
"include": [
"**/*.rs"
],
"exclude": []
}
}
}
],
"library_target_name": "secp256k1",
"common_attrs": {
"compile_data_glob": [
"**"
],
"crate_features": [
"recovery",
"std"
],
"deps": {
"common": [
{
"id": "secp256k1-sys 0.4.2",
"target": "secp256k1_sys"
}
],
"selects": {}
},
"edition": "2015",
"version": "0.20.3"
},
"license": "CC0-1.0"
},
"secp256k1-sys 0.4.2": {
"name": "secp256k1-sys",
"version": "0.4.2",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/secp256k1-sys/0.4.2/download",
"sha256": "957da2573cde917463ece3570eab4a0b3f19de6f1646cde62e6fd3868f566036"
}
},
"targets": [
{
"Library": {
"crate_name": "secp256k1_sys",
"crate_root": "src/lib.rs",
"srcs": {
"include": [
"**/*.rs"
],
"exclude": []
}
}
},
{
"BuildScript": {
"crate_name": "build_script_build",
"crate_root": "build.rs",
"srcs": {
"include": [
"**/*.rs"
],
"exclude": []
}
}
}
],
"library_target_name": "secp256k1_sys",
"common_attrs": {
"compile_data_glob": [
"**"
],
"crate_features": [
"recovery",
"std"
],
"deps": {
"common": [
{
"id": "secp256k1-sys 0.4.2",
"target": "build_script_build"
}
],
"selects": {}
},
"edition": "2015",
"version": "0.4.2"
},
"build_script_attrs": {
"data_glob": [
"**"
],
"deps": {
"common": [
{
"id": "cc 1.0.73",
"target": "cc"
}
],
"selects": {}
},
"links": "rustsecp256k1_v0_4_1"
},
"license": "CC0-1.0"
},
"semver 1.0.9": {
"name": "semver",
"version": "1.0.9",
Expand Down Expand Up @@ -14236,7 +14490,7 @@
},
"binary_crates": [
"cc 1.0.73",
"clap 3.1.17",
"clap 3.1.18",
"lalrpop 0.19.8",
"leb128 0.2.5"
],
Expand Down
4 changes: 3 additions & 1 deletion WORKSPACE.bazel
Expand Up @@ -25,15 +25,17 @@ crates_repository(
"anyhow": crate.spec(version = "1.0.31"),
"async-stream": crate.spec(version = "0.3.3"),
"bincode": crate.spec(version = "1.2.1"),
"bitcoin": crate.spec(version = "0.27"),
"bitflags": crate.spec(version = "1.2.1"),
"candid_derive": crate.spec(version = "0.4.5"),
"candid": crate.spec(version = "0.7.13"),
"candid_derive": crate.spec(version = "0.4.5"),
"chrono": crate.spec(version = "0.4.19"),
"clap": crate.spec(
features = ["derive"],
version = "3.1.6",
),
"criterion": crate.spec(version = "0.3"),
"csv": crate.spec(version = "1.1"),
"cvt": crate.spec(version = "0.1.1"),
"erased-serde": crate.spec(version = "0.3.11"),
"features": crate.spec(version = "0.10.0"),
Expand Down
1 change: 1 addition & 0 deletions rs/BUILD.bazel
Expand Up @@ -15,6 +15,7 @@ filegroup(
# Keep sorted.
"//rs/async_utils:sources",
"//rs/bitcoin/types/public:sources",
"//rs/bitcoin/validation:sources",
"//rs/constants:sources",
"//rs/criterion_time:sources",
"//rs/crypto/internal/crypto_lib/sha2:sources",
Expand Down

0 comments on commit 592c25e

Please sign in to comment.