From da9bc274f3a07a461b279b18c6b650b0a2808c39 Mon Sep 17 00:00:00 2001 From: Connor Brewster Date: Mon, 6 May 2024 10:53:52 -0500 Subject: refactor(tvix): remove usage of async-recursion Rust 1.77 supports async recursion as long as there is some form of indirection (ie. `Box::pin`). This removes the need to use the async-recursion crate. Change-Id: Ic9613ab7f32016f0103032a861edff92e2fb8b41 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11596 Reviewed-by: flokli Autosubmit: Connor Brewster Tested-by: BuildkiteCI --- tvix/Cargo.nix | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'tvix/Cargo.nix') diff --git a/tvix/Cargo.nix b/tvix/Cargo.nix index 93fbbb2e09..0efb86c66d 100644 --- a/tvix/Cargo.nix +++ b/tvix/Cargo.nix @@ -718,35 +718,6 @@ rec { } ]; - }; - "async-recursion" = rec { - crateName = "async-recursion"; - version = "1.0.5"; - edition = "2018"; - sha256 = "1l2vlgyaa9a2dd0y1vbqyppzsvpdr1y4rar4gn1qi68pl5dmmmaz"; - procMacro = true; - authors = [ - "Robert Usher <266585+dcchut@users.noreply.github.com>" - ]; - dependencies = [ - { - name = "proc-macro2"; - packageId = "proc-macro2"; - usesDefaultFeatures = false; - } - { - name = "quote"; - packageId = "quote"; - usesDefaultFeatures = false; - } - { - name = "syn"; - packageId = "syn 2.0.48"; - usesDefaultFeatures = false; - features = [ "full" "parsing" "printing" "proc-macro" "clone-impls" ]; - } - ]; - }; "async-signal" = rec { crateName = "async-signal"; @@ -14098,10 +14069,6 @@ rec { packageId = "async-compression"; features = [ "tokio" "gzip" "bzip2" "xz" ]; } - { - name = "async-recursion"; - packageId = "async-recursion"; - } { name = "bstr"; packageId = "bstr"; @@ -14300,10 +14267,6 @@ rec { packageId = "async-compression"; features = [ "tokio" "bzip2" "gzip" "xz" "zstd" ]; } - { - name = "async-recursion"; - packageId = "async-recursion"; - } { name = "async-stream"; packageId = "async-stream"; -- cgit 1.4.1