lol

Merge pull request #241385 from figsoda/component

cargo-component: unstable-2023-06-20 -> unstable-2023-06-22

authored by

Nick Cao and committed by
GitHub
3de10b6c 2d6213dc

+145 -133
+135 -25
pkgs/development/tools/rust/cargo-component/Cargo.lock
··· 351 351 checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" 352 352 353 353 [[package]] 354 + name = "beef" 355 + version = "0.5.2" 356 + source = "registry+https://github.com/rust-lang/crates.io-index" 357 + checksum = "3a8241f3ebb85c056b509d4327ad0358fbbba6ffb340bf388f26350aeda225b1" 358 + 359 + [[package]] 354 360 name = "bitflags" 355 361 version = "1.3.2" 356 362 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 2420 2426 checksum = "518ef76f2f87365916b142844c16d8fefd85039bc5699050210a7778ee1cd1de" 2421 2427 2422 2428 [[package]] 2429 + name = "logos" 2430 + version = "0.13.0" 2431 + source = "registry+https://github.com/rust-lang/crates.io-index" 2432 + checksum = "c000ca4d908ff18ac99b93a062cb8958d331c3220719c52e77cb19cc6ac5d2c1" 2433 + dependencies = [ 2434 + "logos-derive", 2435 + ] 2436 + 2437 + [[package]] 2438 + name = "logos-codegen" 2439 + version = "0.13.0" 2440 + source = "registry+https://github.com/rust-lang/crates.io-index" 2441 + checksum = "dc487311295e0002e452025d6b580b77bb17286de87b57138f3b5db711cded68" 2442 + dependencies = [ 2443 + "beef", 2444 + "fnv", 2445 + "proc-macro2", 2446 + "quote", 2447 + "regex-syntax 0.6.29", 2448 + "syn 2.0.18", 2449 + ] 2450 + 2451 + [[package]] 2452 + name = "logos-derive" 2453 + version = "0.13.0" 2454 + source = "registry+https://github.com/rust-lang/crates.io-index" 2455 + checksum = "dbfc0d229f1f42d790440136d941afd806bc9e949e2bcb8faa813b0f00d1267e" 2456 + dependencies = [ 2457 + "logos-codegen", 2458 + ] 2459 + 2460 + [[package]] 2423 2461 name = "matchit" 2424 2462 version = "0.7.0" 2425 2463 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 2458 2496 checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4" 2459 2497 dependencies = [ 2460 2498 "autocfg", 2499 + ] 2500 + 2501 + [[package]] 2502 + name = "miette" 2503 + version = "5.9.0" 2504 + source = "registry+https://github.com/rust-lang/crates.io-index" 2505 + checksum = "a236ff270093b0b67451bc50a509bd1bad302cb1d3c7d37d5efe931238581fa9" 2506 + dependencies = [ 2507 + "miette-derive", 2508 + "once_cell", 2509 + "thiserror", 2510 + "unicode-width", 2511 + ] 2512 + 2513 + [[package]] 2514 + name = "miette-derive" 2515 + version = "5.9.0" 2516 + source = "registry+https://github.com/rust-lang/crates.io-index" 2517 + checksum = "4901771e1d44ddb37964565c654a3223ba41a594d02b8da471cc4464912b5cfa" 2518 + dependencies = [ 2519 + "proc-macro2", 2520 + "quote", 2521 + "syn 2.0.18", 2461 2522 ] 2462 2523 2463 2524 [[package]] ··· 3143 3204 ] 3144 3205 3145 3206 [[package]] 3207 + name = "prost-reflect" 3208 + version = "0.11.4" 3209 + source = "registry+https://github.com/rust-lang/crates.io-index" 3210 + checksum = "000e1e05ebf7b26e1eba298e66fe4eee6eb19c567d0ffb35e0dd34231cdac4c8" 3211 + dependencies = [ 3212 + "logos", 3213 + "miette", 3214 + "once_cell", 3215 + "prost", 3216 + "prost-types", 3217 + ] 3218 + 3219 + [[package]] 3146 3220 name = "prost-types" 3147 3221 version = "0.11.9" 3148 3222 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 3152 3226 ] 3153 3227 3154 3228 [[package]] 3229 + name = "protox" 3230 + version = "0.3.5" 3231 + source = "registry+https://github.com/rust-lang/crates.io-index" 3232 + checksum = "24022a7eb88547eaba87a1db7954c9c4cb4a143565c4e8f2b7f3e76eed63db2d" 3233 + dependencies = [ 3234 + "bytes", 3235 + "miette", 3236 + "prost", 3237 + "prost-reflect", 3238 + "prost-types", 3239 + "protox-parse", 3240 + "thiserror", 3241 + ] 3242 + 3243 + [[package]] 3244 + name = "protox-parse" 3245 + version = "0.3.3" 3246 + source = "registry+https://github.com/rust-lang/crates.io-index" 3247 + checksum = "712a2a651fa4466e67df6c967df5d7fc6cbffac89afc7b834f97ec49846c9c11" 3248 + dependencies = [ 3249 + "logos", 3250 + "miette", 3251 + "prost-types", 3252 + "thiserror", 3253 + ] 3254 + 3255 + [[package]] 3155 3256 name = "pulldown-cmark" 3156 3257 version = "0.8.0" 3157 3258 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 3247 3348 dependencies = [ 3248 3349 "aho-corasick 1.0.2", 3249 3350 "memchr", 3250 - "regex-syntax", 3351 + "regex-syntax 0.7.2", 3251 3352 ] 3252 3353 3253 3354 [[package]] ··· 3255 3356 version = "0.1.10" 3256 3357 source = "registry+https://github.com/rust-lang/crates.io-index" 3257 3358 checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" 3359 + 3360 + [[package]] 3361 + name = "regex-syntax" 3362 + version = "0.6.29" 3363 + source = "registry+https://github.com/rust-lang/crates.io-index" 3364 + checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" 3258 3365 3259 3366 [[package]] 3260 3367 name = "regex-syntax" ··· 3490 3597 checksum = "f3a1a3341211875ef120e117ea7fd5228530ae7e7036a779fdc9117be6b3282c" 3491 3598 dependencies = [ 3492 3599 "ordered-float", 3493 - "serde", 3494 - ] 3495 - 3496 - [[package]] 3497 - name = "serde_bytes" 3498 - version = "0.11.9" 3499 - source = "registry+https://github.com/rust-lang/crates.io-index" 3500 - checksum = "416bda436f9aab92e02c8e10d49a15ddd339cea90b6e340fe51ed97abb548294" 3501 - dependencies = [ 3502 3600 "serde", 3503 3601 ] 3504 3602 ··· 4258 4356 [[package]] 4259 4357 name = "warg-api" 4260 4358 version = "0.1.0" 4261 - source = "git+https://github.com/bytecodealliance/registry?rev=a19e85a48f806599e3709332aa102623a0084277#a19e85a48f806599e3709332aa102623a0084277" 4359 + source = "git+https://github.com/bytecodealliance/registry#c308e35e8d2b5fefb6c936427a935f38314b804a" 4262 4360 dependencies = [ 4263 4361 "serde", 4264 4362 "serde_with", ··· 4270 4368 [[package]] 4271 4369 name = "warg-client" 4272 4370 version = "0.1.0" 4273 - source = "git+https://github.com/bytecodealliance/registry?rev=a19e85a48f806599e3709332aa102623a0084277#a19e85a48f806599e3709332aa102623a0084277" 4371 + source = "git+https://github.com/bytecodealliance/registry#c308e35e8d2b5fefb6c936427a935f38314b804a" 4274 4372 dependencies = [ 4275 4373 "anyhow", 4276 4374 "async-trait", ··· 4303 4401 [[package]] 4304 4402 name = "warg-crypto" 4305 4403 version = "0.1.0" 4306 - source = "git+https://github.com/bytecodealliance/registry?rev=a19e85a48f806599e3709332aa102623a0084277#a19e85a48f806599e3709332aa102623a0084277" 4404 + source = "git+https://github.com/bytecodealliance/registry#c308e35e8d2b5fefb6c936427a935f38314b804a" 4307 4405 dependencies = [ 4308 4406 "anyhow", 4309 4407 "base64 0.21.2", 4310 4408 "digest", 4311 4409 "hex", 4312 4410 "leb128", 4411 + "once_cell", 4313 4412 "p256", 4314 4413 "rand_core", 4315 4414 "secrecy", ··· 4320 4419 ] 4321 4420 4322 4421 [[package]] 4323 - name = "warg-protocol" 4422 + name = "warg-protobuf" 4324 4423 version = "0.1.0" 4325 - source = "git+https://github.com/bytecodealliance/registry?rev=a19e85a48f806599e3709332aa102623a0084277#a19e85a48f806599e3709332aa102623a0084277" 4424 + source = "git+https://github.com/bytecodealliance/registry#c308e35e8d2b5fefb6c936427a935f38314b804a" 4326 4425 dependencies = [ 4327 4426 "anyhow", 4328 - "base64 0.21.2", 4329 - "hex", 4330 - "indexmap", 4331 4427 "pbjson", 4332 4428 "pbjson-build", 4333 4429 "pbjson-types", 4334 4430 "prost", 4335 4431 "prost-build", 4336 4432 "prost-types", 4433 + "protox", 4337 4434 "regex", 4435 + "serde", 4436 + "warg-crypto", 4437 + ] 4438 + 4439 + [[package]] 4440 + name = "warg-protocol" 4441 + version = "0.1.0" 4442 + source = "git+https://github.com/bytecodealliance/registry#c308e35e8d2b5fefb6c936427a935f38314b804a" 4443 + dependencies = [ 4444 + "anyhow", 4445 + "base64 0.21.2", 4446 + "hex", 4447 + "indexmap", 4448 + "pbjson-types", 4449 + "prost", 4450 + "prost-types", 4338 4451 "semver", 4339 4452 "serde", 4340 4453 "serde_with", 4341 4454 "thiserror", 4342 4455 "warg-crypto", 4456 + "warg-protobuf", 4343 4457 "warg-transparency", 4344 4458 "wasmparser", 4345 4459 ] ··· 4347 4461 [[package]] 4348 4462 name = "warg-server" 4349 4463 version = "0.1.0" 4350 - source = "git+https://github.com/bytecodealliance/registry?rev=a19e85a48f806599e3709332aa102623a0084277#a19e85a48f806599e3709332aa102623a0084277" 4464 + source = "git+https://github.com/bytecodealliance/registry#c308e35e8d2b5fefb6c936427a935f38314b804a" 4351 4465 dependencies = [ 4352 4466 "anyhow", 4353 4467 "axum", ··· 4375 4489 [[package]] 4376 4490 name = "warg-transparency" 4377 4491 version = "0.1.0" 4378 - source = "git+https://github.com/bytecodealliance/registry?rev=a19e85a48f806599e3709332aa102623a0084277#a19e85a48f806599e3709332aa102623a0084277" 4492 + source = "git+https://github.com/bytecodealliance/registry#c308e35e8d2b5fefb6c936427a935f38314b804a" 4379 4493 dependencies = [ 4380 4494 "anyhow", 4381 - "pbjson", 4382 4495 "pbjson-build", 4383 - "pbjson-types", 4384 4496 "prost", 4385 4497 "prost-build", 4386 - "prost-types", 4387 4498 "regex", 4388 - "serde", 4389 - "serde_bytes", 4390 4499 "thiserror", 4391 4500 "warg-crypto", 4501 + "warg-protobuf", 4392 4502 ] 4393 4503 4394 4504 [[package]]
+10 -15
pkgs/development/tools/rust/cargo-component/default.nix
··· 4 4 , fetchpatch 5 5 , curl 6 6 , pkg-config 7 - , protobuf 8 7 , libgit2 9 8 , openssl 10 9 , zlib ··· 14 13 15 14 rustPlatform.buildRustPackage { 16 15 pname = "cargo-component"; 17 - version = "unstable-2023-06-20"; 16 + version = "unstable-2023-06-22"; 18 17 19 18 src = fetchFromGitHub { 20 19 owner = "bytecodealliance"; 21 20 repo = "cargo-component"; 22 - rev = "277728b729577540fdd5977a59a4e51c061c6fcb"; 23 - hash = "sha256-Uu+S4TRbtei78ZNkYNkwHiIot0L7fUODJgd5xDjw8rg="; 21 + rev = "bd98521c6e13640593ad676d8b6f1e64054755d4"; 22 + hash = "sha256-5r3g158Ujdbpb0NZI1DIu3TGpc3G9XDmXg+mq+/Dayc="; 24 23 }; 25 24 26 25 cargoLock = { 27 26 lockFile = ./Cargo.lock; 28 27 outputHashes = { 29 - "warg-api-0.1.0" = "sha256-GYmHrGCmEMYCi8S+hd0CuBxkwF4BM1B9pJ1TOGCqHuk="; 28 + "warg-api-0.1.0" = "sha256-M1hbgWqibbq7upfvNarcqAM0fbWL8Z7y+pWpBfVqxiI="; 30 29 }; 31 30 }; 32 31 33 32 patches = [ 34 - # update dependencies to make it work when dependencies are vendored 35 - # https://github.com/bytecodealliance/registry/pull/138 36 - ./update-registry.patch 37 - 38 - # fix build when it is not in a git repository 39 - # https://github.com/bytecodealliance/cargo-component/pull/92 33 + # update warg dependencies to make cargo-component work when dependencies 34 + # are vendored, since the fix has already been merged in warg 35 + # https://github.com/bytecodealliance/cargo-component/pull/93 40 36 (fetchpatch { 41 - name = "export-wasi-adapter-version-even-if-git-fails.patch"; 42 - url = "https://github.com/bytecodealliance/cargo-component/commit/9b2517fe2c4dbb1077a8785fd79c677ad1b7fc6b.patch"; 43 - hash = "sha256-nY8ltBb8H7zkE2JLhXJiBOMwTM8CVvkXTSHTUyMqamo="; 37 + name = "update-warg-dependencies.patch"; 38 + url = "https://github.com/bytecodealliance/cargo-component/commit/dac67f9eb465efaf11f445bc949bd87f7039a472.patch"; 39 + hash = "sha256-tFJtQJtHAmw4xZ9ADLyQn9+QRxHU1iZZbfXGYaPajg8="; 44 40 }) 45 41 ]; 46 42 47 43 nativeBuildInputs = [ 48 44 curl 49 45 pkg-config 50 - protobuf 51 46 ]; 52 47 53 48 buildInputs = [
-93
pkgs/development/tools/rust/cargo-component/update-registry.patch
··· 1 - --- a/Cargo.lock 2 - +++ b/Cargo.lock 3 - @@ -4258,7 +4258,7 @@ dependencies = [ 4 - [[package]] 5 - name = "warg-api" 6 - version = "0.1.0" 7 - -source = "git+https://github.com/bytecodealliance/registry#f0e45fc765e24e7bb6671f568ee4d3f80a723689" 8 - +source = "git+https://github.com/bytecodealliance/registry?rev=a19e85a48f806599e3709332aa102623a0084277#a19e85a48f806599e3709332aa102623a0084277" 9 - dependencies = [ 10 - "serde", 11 - "serde_with", 12 - @@ -4270,7 +4270,7 @@ dependencies = [ 13 - [[package]] 14 - name = "warg-client" 15 - version = "0.1.0" 16 - -source = "git+https://github.com/bytecodealliance/registry#f0e45fc765e24e7bb6671f568ee4d3f80a723689" 17 - +source = "git+https://github.com/bytecodealliance/registry?rev=a19e85a48f806599e3709332aa102623a0084277#a19e85a48f806599e3709332aa102623a0084277" 18 - dependencies = [ 19 - "anyhow", 20 - "async-trait", 21 - @@ -4303,7 +4303,7 @@ dependencies = [ 22 - [[package]] 23 - name = "warg-crypto" 24 - version = "0.1.0" 25 - -source = "git+https://github.com/bytecodealliance/registry#f0e45fc765e24e7bb6671f568ee4d3f80a723689" 26 - +source = "git+https://github.com/bytecodealliance/registry?rev=a19e85a48f806599e3709332aa102623a0084277#a19e85a48f806599e3709332aa102623a0084277" 27 - dependencies = [ 28 - "anyhow", 29 - "base64 0.21.2", 30 - @@ -4322,7 +4322,7 @@ dependencies = [ 31 - [[package]] 32 - name = "warg-protocol" 33 - version = "0.1.0" 34 - -source = "git+https://github.com/bytecodealliance/registry#f0e45fc765e24e7bb6671f568ee4d3f80a723689" 35 - +source = "git+https://github.com/bytecodealliance/registry?rev=a19e85a48f806599e3709332aa102623a0084277#a19e85a48f806599e3709332aa102623a0084277" 36 - dependencies = [ 37 - "anyhow", 38 - "base64 0.21.2", 39 - @@ -4347,7 +4347,7 @@ dependencies = [ 40 - [[package]] 41 - name = "warg-server" 42 - version = "0.1.0" 43 - -source = "git+https://github.com/bytecodealliance/registry#f0e45fc765e24e7bb6671f568ee4d3f80a723689" 44 - +source = "git+https://github.com/bytecodealliance/registry?rev=a19e85a48f806599e3709332aa102623a0084277#a19e85a48f806599e3709332aa102623a0084277" 45 - dependencies = [ 46 - "anyhow", 47 - "axum", 48 - @@ -4355,7 +4355,6 @@ dependencies = [ 49 - "clap", 50 - "futures", 51 - "indexmap", 52 - - "reqwest", 53 - "serde", 54 - "tempfile", 55 - "thiserror", 56 - @@ -4365,6 +4364,7 @@ dependencies = [ 57 - "tower-http", 58 - "tracing", 59 - "tracing-subscriber", 60 - + "url", 61 - "warg-api", 62 - "warg-crypto", 63 - "warg-protocol", 64 - @@ -4375,7 +4375,7 @@ dependencies = [ 65 - [[package]] 66 - name = "warg-transparency" 67 - version = "0.1.0" 68 - -source = "git+https://github.com/bytecodealliance/registry#f0e45fc765e24e7bb6671f568ee4d3f80a723689" 69 - +source = "git+https://github.com/bytecodealliance/registry?rev=a19e85a48f806599e3709332aa102623a0084277#a19e85a48f806599e3709332aa102623a0084277" 70 - dependencies = [ 71 - "anyhow", 72 - "pbjson", 73 - --- a/Cargo.toml 74 - +++ b/Cargo.toml 75 - @@ -9,9 +9,9 @@ cargo = "0.71.0" 76 - cargo-util = "0.2.4" 77 - clap = { version = "4.3.3", features = ["derive"] } 78 - toml_edit = { version = "0.19.10", features = ["serde"] } 79 - -warg-protocol = { git = "https://github.com/bytecodealliance/registry" } 80 - -warg-crypto = { git = "https://github.com/bytecodealliance/registry" } 81 - -warg-client = { git = "https://github.com/bytecodealliance/registry" } 82 - +warg-protocol = { git = "https://github.com/bytecodealliance/registry", rev = "a19e85a48f806599e3709332aa102623a0084277" } 83 - +warg-crypto = { git = "https://github.com/bytecodealliance/registry", rev = "a19e85a48f806599e3709332aa102623a0084277" } 84 - +warg-client = { git = "https://github.com/bytecodealliance/registry", rev = "a19e85a48f806599e3709332aa102623a0084277" } 85 - wit-bindgen-core = "0.7.0" 86 - wit-bindgen-rust = "0.7.0" 87 - wit-bindgen-rust-lib = "0.7.0" 88 - @@ -47,4 +47,4 @@ default = ["pretty_env_logger"] 89 - assert_cmd = "2.0.11" 90 - predicates = "3.0.3" 91 - wasmparser = "0.107.0" 92 - -warg-server = { git = "https://github.com/bytecodealliance/registry" } 93 - +warg-server = { git = "https://github.com/bytecodealliance/registry", rev = "a19e85a48f806599e3709332aa102623a0084277" }