Unfork rustfilt using an artifact dependency

Summary:
Context: https://fb.workplace.com/groups/rust.foundation.team/posts/1557305454784096.

Artifact dependencies allow a Cargo.toml to declare a dependency on a binary-only crate.

```
[dependencies]
rustfilt = { version = "0.2", artifact = "bin" }
```

Previously in order to import such crates, we would need to fork the crate and put in an empty lib.rs so that the dependency would become accepted by Cargo.

Dealing with forks is substantially more burdensome than straightforward crates.io dependencies so I am excited to move away from needing them.

Reviewed By: zertosh

Differential Revision: D42398657

fbshipit-source-id: 50c2fb7138c216552a37d5231062cedf94ce60fc
This commit is contained in:
David Tolnay 2023-01-27 12:48:05 -08:00 committed by Facebook GitHub Bot
parent c24287ff1c
commit 614a1a8a38
2 changed files with 0 additions and 2 deletions

View File

@ -17,7 +17,6 @@ prost-derive = { version = "0.11.6", git = "https://github.com/krallin/prost.git
prost-types = { version = "0.11.6", git = "https://github.com/krallin/prost.git", rev = "90b7e204c66f6baed0b1426ce456fb70d16b1cdb" }
quickcheck = { git = "https://github.com/jakoschiko/quickcheck", rev = "6ecdf5bb4b0132ce66670b4d46453aa022ea892c" }
reqwest = { git = "https://github.com/vmagro/reqwest", rev = "f9490c06756a9d35ab874c44657db790a87af80b" }
rustfilt = { git = "https://github.com/jsgf/rustfilt.git", rev = "8141fa7f1caee562ee8daffb2ddeca3d1f0d36e5" }
scip = { git = "https://github.com/davidbarsky/scip.git", rev = "58b9509f04aa853006ed1b1256434c421bb54eec" }
solana-program = { git = "https://github.com/omertxyz/solana.git", rev = "03a3b241622b6248bb245c29baef538a88f04c0b" }
solana-zk-token-sdk = { git = "https://github.com/omertxyz/solana.git", rev = "03a3b241622b6248bb245c29baef538a88f04c0b" }

View File

@ -153,7 +153,6 @@ prost-derive = { version = "0.11.6", git = "https://github.com/krallin/prost.git
prost-types = { version = "0.11.6", git = "https://github.com/krallin/prost.git", rev = "90b7e204c66f6baed0b1426ce456fb70d16b1cdb" }
quickcheck = { git = "https://github.com/jakoschiko/quickcheck", rev = "6ecdf5bb4b0132ce66670b4d46453aa022ea892c" }
reqwest = { git = "https://github.com/vmagro/reqwest", rev = "f9490c06756a9d35ab874c44657db790a87af80b" }
rustfilt = { git = "https://github.com/jsgf/rustfilt.git", rev = "8141fa7f1caee562ee8daffb2ddeca3d1f0d36e5" }
scip = { git = "https://github.com/davidbarsky/scip.git", rev = "58b9509f04aa853006ed1b1256434c421bb54eec" }
solana-program = { git = "https://github.com/omertxyz/solana.git", rev = "03a3b241622b6248bb245c29baef538a88f04c0b" }
solana-zk-token-sdk = { git = "https://github.com/omertxyz/solana.git", rev = "03a3b241622b6248bb245c29baef538a88f04c0b" }