Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release candidate #3

Open
wants to merge 234 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 95 commits
Commits
Show all changes
234 commits
Select commit Hold shift + click to select a range
ab12338
remove kdf as dep
Alrighttt Sep 16, 2024
a7be9b5
use rustls for reqwest on linux target
Alrighttt Sep 17, 2024
d8f9628
align dep versions to kdf
Alrighttt Sep 18, 2024
0bce6ab
remove debugging code
Alrighttt Sep 18, 2024
3f32f88
fix unit test
Alrighttt Sep 18, 2024
4977997
move wasm client tests
Alrighttt Sep 18, 2024
815d30b
set cdylib in Cargo.toml
Alrighttt Sep 18, 2024
d334a2f
don't use tokio for wasm test env
Alrighttt Sep 18, 2024
274e438
fix wasm tx signing
Alrighttt Sep 18, 2024
e4251bb
fix tokio tests
Alrighttt Sep 20, 2024
8658825
Cargo.lock
Alrighttt Sep 20, 2024
109122e
move hash to sub-module of types
Alrighttt Sep 21, 2024
4e7e86c
new minimal hash module
Alrighttt Sep 21, 2024
cd2fa34
publicly expose H256 in types module
Alrighttt Sep 21, 2024
0933358
remove PrefixedH256 from types
Alrighttt Sep 21, 2024
852178a
add FIXME comment regarding pub exports
Alrighttt Sep 21, 2024
512a7e7
temp fix for Currency type export
Alrighttt Sep 21, 2024
fd87545
fix H256 usage in various unit tests
Alrighttt Sep 21, 2024
412a6fa
fix H256 usage in more unit tests
Alrighttt Sep 21, 2024
dab14e4
add macros module; remove hash from root exposed modules
Alrighttt Sep 21, 2024
3327661
add FIXME comment regarding lib structure
Alrighttt Sep 21, 2024
5113a45
remove PrefixedH256 type
Alrighttt Sep 21, 2024
87cfa52
rename H256->Hash256 to match Go code
Alrighttt Sep 21, 2024
29ae68d
change cross_target_test macro to process multiple unit tests
Alrighttt Sep 21, 2024
5491252
add FIXME comment to Cargo.toml re: missing info fields
Alrighttt Sep 21, 2024
573a011
fix wasm client error unit test
Alrighttt Sep 21, 2024
4431d45
cargo fmt
Alrighttt Sep 21, 2024
5660b45
remove unneccesary pub export
Alrighttt Sep 21, 2024
9f3ccfb
remove unnecessary trait derives
Alrighttt Sep 21, 2024
6e4b762
add doc comment for cross_target_tests macro
Alrighttt Sep 21, 2024
f1b3eeb
add hash unit tests; cargo fmt
Alrighttt Sep 21, 2024
cc556e0
cargo fmt
Alrighttt Sep 21, 2024
1812f11
derive Eq for Hash256
Alrighttt Sep 21, 2024
7dda6d4
remove PrefixedSignature type; move Signature type to own module
Alrighttt Sep 21, 2024
eb561e2
Remove PrefixedSignature entirely; remove related serde_as remnants
Alrighttt Sep 21, 2024
1d00d0a
removed derive(Copy) from Signature
Alrighttt Sep 21, 2024
ef87245
removed derive(Copy) from Signature again
Alrighttt Sep 21, 2024
ea3a14a
fix Signature import paths
Alrighttt Sep 21, 2024
25279d9
validate signature r Point
Alrighttt Sep 22, 2024
299e323
signature unit tests
Alrighttt Sep 22, 2024
cf70707
fix hash unit test
Alrighttt Sep 22, 2024
5c860d9
import curve25519-dalek; already in dep tree
Alrighttt Sep 22, 2024
8506368
more verbose ParseHashError
Alrighttt Sep 22, 2024
184aa5e
move PublicKey and KeyPair types to module - breaking change for KDF …
Alrighttt Sep 22, 2024
d067ac3
rename ScoidH256 -> SiacoinOutputId
Alrighttt Sep 22, 2024
e2a4b19
fix SiacoinOutputID symbol rename
Alrighttt Sep 22, 2024
b9e1875
fix typo
Alrighttt Sep 22, 2024
01448a6
fix various imports in tests
Alrighttt Sep 22, 2024
39697f4
move SiacoinOutputID to transaction.rs; remove serde_as hack, use typ…
Alrighttt Sep 22, 2024
f12b273
remove unused import
Alrighttt Sep 22, 2024
8e936c2
remove comment no longer applicable; rename symbol
Alrighttt Sep 22, 2024
68c21d0
fix tests; remove unused import
Alrighttt Sep 22, 2024
e3cafcd
remove unused trait impl
Alrighttt Sep 22, 2024
c845c54
rename symbol HexArray64->Leaf
Alrighttt Sep 22, 2024
f1921cb
cargo fmt
Alrighttt Sep 22, 2024
ddcd035
remove Copy impl from Hash256
Alrighttt Sep 22, 2024
e5f0240
fix errors caused by remove of Hash256 Copy; add FIXME comment
Alrighttt Sep 22, 2024
999d1ff
move Leaf to transaction module
Alrighttt Sep 22, 2024
8afa970
wrap tests in mod
Alrighttt Sep 22, 2024
7b635dd
remove PublicKey Deref impl
Alrighttt Sep 22, 2024
dddc302
remove PrefixedPublicKey type
Alrighttt Sep 22, 2024
b2ee198
impl required PublicKey traits; better KeypairError handling
Alrighttt Sep 22, 2024
a18a634
remove unused impl
Alrighttt Sep 22, 2024
24e258f
remove Copy impl from PublicKey
Alrighttt Sep 22, 2024
6555c1a
remove unused PublicKey method
Alrighttt Sep 22, 2024
d01b2cf
remove .public() method from PublicKey
Alrighttt Sep 22, 2024
aa42baa
refactor Keypair type; impl Verifier, Signer
Alrighttt Sep 22, 2024
ae9794f
cargo fmt
Alrighttt Sep 22, 2024
4721365
move Currency public export path
Alrighttt Sep 22, 2024
5e1108d
remove SpendPolicyHelper type and serde_with dep
Alrighttt Sep 22, 2024
19321cc
cargo fmt
Alrighttt Sep 22, 2024
64ccd8a
majorly reorganize pub exports
Alrighttt Sep 22, 2024
bad7478
remove standalone v1_standard_address_from_pubkey; add Address method…
Alrighttt Sep 22, 2024
9594d13
remove now irrelevant comment
Alrighttt Sep 22, 2024
f399db9
fix wasm test warnings
Alrighttt Sep 22, 2024
e32d8b0
wrap blake2b unit tests in cross_target_tests
Alrighttt Sep 22, 2024
11299fb
wrap encoder tests in cross_target_tests
Alrighttt Sep 22, 2024
a73027d
wrap tests/encoding in cross_target_tests
Alrighttt Sep 22, 2024
ab1df50
wrap tests/serde in cross_target_tests; fix indentation
Alrighttt Sep 22, 2024
21df888
wrap tests/transaction in cross_target_tests
Alrighttt Sep 22, 2024
530c7d0
wrap tests/spend_policy in cross_target_tests
Alrighttt Sep 22, 2024
e5b372a
replace standalone atomic_swap functions with SpendPolicy methods
Alrighttt Sep 22, 2024
2d5cebe
init atomic_swap mod WIP
Alrighttt Sep 24, 2024
9a17682
init AtomicSwap types and tests
Alrighttt Sep 24, 2024
4ce9455
atomic swap component unit test
Alrighttt Sep 26, 2024
6c039de
edit atomic swap comments
Alrighttt Sep 26, 2024
fbd234b
remove pub export of policy from AtomicSwap and AtomicSwapComponent w…
Alrighttt Sep 26, 2024
fb2d387
remove unnecessary generalization
Alrighttt Sep 26, 2024
296bbba
remove PhantomData pattern
Alrighttt Sep 26, 2024
979997d
introduce IsValidatedSpendPolicy trait
Alrighttt Sep 26, 2024
b7c8e41
fix doc comment
Alrighttt Sep 26, 2024
6d80c16
generalize IsValidatedPolicy to support SatisfiedPolicy
Alrighttt Sep 26, 2024
2b86761
add opaque SpendPolicy path
Alrighttt Oct 1, 2024
0376b29
fix misnomer; change "http"->"transport"
Alrighttt Oct 2, 2024
9b79ae3
fix atomic_swap compilation - this file is likely to be fully refacto…
Alrighttt Oct 2, 2024
b5db130
add address and v1_address method to PublicKey
Alrighttt Oct 13, 2024
a0a7b94
add unlock_condition helper method to SpendPolicy
Alrighttt Oct 13, 2024
04e3bee
reintroduce Keypair::public method; add doc comment for Keypair
Alrighttt Oct 13, 2024
5d00f8c
use Keypair::public method instead of direct ref to struct member
Alrighttt Oct 13, 2024
b8014cb
add temp bandaid hack to allow KDF compilation; the impl is unused bu…
Alrighttt Oct 13, 2024
437ed06
remove placeholder Clone impl
Alrighttt Oct 13, 2024
2ff24bc
add Keypair::private method
Alrighttt Oct 13, 2024
fbbb1d7
use native rust ssl for all targets
Alrighttt Oct 14, 2024
5c67383
use native rust ssl for all targets; linux target would require libss…
Alrighttt Oct 14, 2024
0edf6a7
remove unnecessary new type wrapper
Alrighttt Oct 17, 2024
c11f697
impl Clone for all endpoint request and response types
Alrighttt Oct 17, 2024
fe8c86e
remove GetAddressUtxosResponse type alias
Alrighttt Oct 19, 2024
09fa07b
add Currency doc comment and TODO; add SiacoinElement doc comment
Alrighttt Oct 19, 2024
ee4bc01
add api/debug/mine endpoint
Alrighttt Oct 20, 2024
068ff94
edit endpoint doc comments
Alrighttt Oct 20, 2024
0e1e4c4
add clarification to debug comment
Alrighttt Oct 20, 2024
83edc28
move ApiClientHelpers to its own module
Alrighttt Oct 20, 2024
b6bb7eb
add Address::from_public_key
Alrighttt Oct 20, 2024
432f1d7
make Currency::ZERO const pub
Alrighttt Oct 20, 2024
d7eb095
add ApiClientHelpers::select_unspent_outputs
Alrighttt Oct 20, 2024
75565e6
impl FromStr for PublicKey in keypair.rs
Alrighttt Oct 22, 2024
13e54c7
doc comment typo
Alrighttt Oct 22, 2024
4b9b63f
use public_key impl of Verifier instead of duplicate impl on Keypair
Alrighttt Oct 22, 2024
17df012
split KeypairError into PublicKeyError and PrivateKeyError
Alrighttt Oct 22, 2024
90c68c7
impl verify signature method for PublicKey
Alrighttt Oct 22, 2024
1de37ce
pub expose PublicKeyError and PrivateKeyError in types module
Alrighttt Oct 22, 2024
bbb0b55
add SignatureError::VerifyFailed variant; edit display impls of Signa…
Alrighttt Oct 22, 2024
2520c46
add Signature::verify method
Alrighttt Oct 22, 2024
0137254
derive V1TransactionSansSigs Deref; remove manual Deref impl
Alrighttt Oct 22, 2024
4848dc0
derive arithmetic traits for Currency type via derive_more crate
Alrighttt Oct 22, 2024
01c9cd4
add Currency::COIN const
Alrighttt Oct 22, 2024
6405fc0
remove From<u128> and From<i32> for Currency
Alrighttt Oct 22, 2024
95298ed
add comment re: TxBuilder input signing
Alrighttt Oct 22, 2024
0aad6ce
update V2TransactionBuilder methods to use ref instead for easier for…
Alrighttt Oct 23, 2024
a065cf0
add From<tuple> for SiacoinOutput helpers
Alrighttt Oct 23, 2024
7a212e7
add Currency::DUST const placeholder
Alrighttt Oct 23, 2024
ce5ad5d
make ApiClientHelpersError pub
Alrighttt Oct 23, 2024
cfcd6a9
simplify ApiClientHelpersError::SelectOutputs display impl
Alrighttt Oct 23, 2024
b9881af
impl Clone, Debug for V2TransactionBuilder
Alrighttt Oct 23, 2024
307a7aa
make V2TransactionBuilder setters consume self instead of mut ref
Alrighttt Oct 23, 2024
1a5fe6b
switch V2TransactionBuilder setters back to using mut ref instead of …
Alrighttt Oct 23, 2024
977f075
add ApiClientHelpers::fund_tx_single_source WIP
Alrighttt Oct 23, 2024
0ebf9ee
uncomment code
Alrighttt Oct 23, 2024
73c8655
cargo fmt; Cargo.lock
Alrighttt Oct 23, 2024
d3106ab
fix V2TransactionBuilder::build so consumer can correctly chain it wi…
Alrighttt Oct 23, 2024
4164149
fix Currency::COIN const definition
Alrighttt Oct 24, 2024
09369a3
remove incomplete "SatisfyPolicy" trait - will explore this generaliz…
Alrighttt Oct 24, 2024
487e190
fix transaction unit tests compilation
Alrighttt Oct 24, 2024
4d4c602
add FeePolicy type to V2TransactionBuilder; doc comment regarding txf…
Alrighttt Oct 24, 2024
a0a2ecc
change Preimage to fixed sized array instead of Vec<u8>; accounts for…
Alrighttt Oct 24, 2024
3be905b
fix transaction encoding tests to account for Vec<u8> -> [u8;32] prei…
Alrighttt Oct 24, 2024
3948298
again fix transaction encoding tests to account for Vec<u8> -> [u8;32…
Alrighttt Oct 24, 2024
d4988a1
fix ApiClientHelpers::select_unspent_outputs doc comment
Alrighttt Oct 24, 2024
98e9c7d
add brief doc comment for type Preimage
Alrighttt Oct 24, 2024
2614f19
typo in doc comment
Alrighttt Oct 24, 2024
5d472f2
update fund_tx_single_source txfee handling; edit doc comment of fund…
Alrighttt Oct 25, 2024
87e69b1
impl TryFrom<&[u8]> for Hash256
Alrighttt Oct 25, 2024
273dd37
change Preimage from type alias to newtype struc
Alrighttt Oct 26, 2024
c1d9d81
add enum PreimageError
Alrighttt Oct 26, 2024
14a8f90
remove redundant `impl TryFrom<&str> for Hash256`. FromStr is impleme…
Alrighttt Oct 26, 2024
97fa3f8
add verbosity to ParseHashError display impls
Alrighttt Oct 26, 2024
062aa6e
Add TransactionId type alias;
Alrighttt Oct 26, 2024
3802f5f
Fix test compilation failure due to removal of `impl TryFrom<&str> fo…
Alrighttt Oct 26, 2024
f41aa3e
remove unused `impl Encodable for SiacoinOutputId`
Alrighttt Oct 26, 2024
0502169
Use u32 instead of u64 for output index.
Alrighttt Oct 26, 2024
4818788
add ApiClientHelpers::utxo_from_txid helper
Alrighttt Oct 26, 2024
1f250a8
make SpendPolicy::atomic_swap take references for convenience
Alrighttt Oct 27, 2024
9d1a1ba
expose pub UtxoFromTxidError via client module
Alrighttt Oct 27, 2024
e7e245d
add dev comment TODO re: V2TransactionBuilder helpers
Alrighttt Oct 27, 2024
ffdf9e0
fix lossy usize comparison
Alrighttt Oct 27, 2024
639a747
add V2TransactionBuilder::satisfy_atomic_swap_success
Alrighttt Oct 27, 2024
4c7e9a5
set a Currency::DEFAULT_FEE const
Alrighttt Oct 27, 2024
e830900
refactor ApiClientHelpers error handling so allow single HelperError …
Alrighttt Oct 27, 2024
b291bad
remove UtxoFromTxidError pub export from helpers module. UtxoFromTxid…
Alrighttt Oct 27, 2024
dc17056
fix tests compilation after SpendPolicy::atomic_swap method arguments…
Alrighttt Oct 27, 2024
283ea9e
remove incomplete atomic_swap module; move atomic swaps comment block…
Alrighttt Oct 27, 2024
4d24821
remove atomic_swap module from types module
Alrighttt Oct 27, 2024
7887e91
use Currency directly for arithmetic in ApiClientHelpers::select_unsp…
Alrighttt Oct 27, 2024
ce321bb
fix various cargo clippy warnings/errors
Alrighttt Oct 27, 2024
1af41ae
fix spend_policy dev comments re: atomic swap SpendPolicy
Alrighttt Oct 28, 2024
3b4abe1
Make SpendPolicy atomic swap helpers more verbose - add doc comment r…
Alrighttt Oct 28, 2024
938b969
add ApiClientHelpers::broadcast_transaction method
Alrighttt Oct 29, 2024
b2a7d3f
fix Preimage serialization - fixes SatisfiedPolicy serde
Alrighttt Oct 29, 2024
a136d4f
add V2TransactionBuilder::satisfy_atomic_swap_refund and V2Transactio…
Alrighttt Oct 29, 2024
80e2589
add ApiClientHelpers::get_address_events and corresponding errors
Alrighttt Oct 30, 2024
25993f0
add ApiClentHelpers::get_median_timestamp
Alrighttt Oct 31, 2024
0937be8
remove commented dead code
Alrighttt Oct 31, 2024
548f67b
add api/consensus/index/{height} and WIP api/consensus/updates/{heigh…
Alrighttt Oct 31, 2024
7e8beb9
rename macros module to utils
Alrighttt Oct 31, 2024
7a19d42
delete old macros module
Alrighttt Oct 31, 2024
bd2ba0d
add consensus_updates module
Alrighttt Oct 31, 2024
64c8ce9
remove consensus updates types from endpoints module - moved to dedic…
Alrighttt Oct 31, 2024
d58aa1e
Edit HelperError display impls
Alrighttt Oct 31, 2024
2e67cb5
finish implementing ApiClientHelpers::find_where_utxo_spent
Alrighttt Oct 31, 2024
510f36d
add newly added "confirmations" field to Event type
Alrighttt Nov 5, 2024
e8dbc0c
add dev comment TODO re: EmptyResponse type
Alrighttt Nov 6, 2024
21da3c1
fix txpool endpoint response
Alrighttt Nov 7, 2024
d162f2e
fix various cargo doc hyperlinks
Alrighttt Nov 15, 2024
317aabf
fix expected case for test_satisfied_policy_encode_hash_empty unit test
Alrighttt Nov 15, 2024
49d250b
fix SpendPolicy::Hash encoding to account for fixed sized preimages c…
Alrighttt Nov 15, 2024
51e5df2
remove id field from StateElement
Alrighttt Nov 15, 2024
4af0ccb
change FileContractID from type alias to newtype pattern - this is no…
Alrighttt Nov 15, 2024
91ad548
fix SiacoinElement encoding
Alrighttt Nov 15, 2024
a2bfed0
derive Default for FileContractID and SiacoinOutputId
Alrighttt Nov 15, 2024
2336121
fix various compilation errors in transaction unit tests related to S…
Alrighttt Nov 15, 2024
fd326ec
fix SiacoinElement id field serde
Alrighttt Nov 15, 2024
e8879c7
add capacity field to V2FileContract
Alrighttt Nov 15, 2024
4cee4a1
fix various transaction unit tests corresponding to rust_port_test.go…
Alrighttt Nov 15, 2024
1224470
refactor Hash256 serde to account for Sia Go SiaFoundation/core/pull/224
Alrighttt Nov 15, 2024
b75361e
remove now irrelevant dev comment
Alrighttt Nov 15, 2024
2657300
remove h: prefix from all unit tests
Alrighttt Nov 15, 2024
68cc1df
refactor Address serde to remove addr: prefix
Alrighttt Nov 15, 2024
33146a4
remove addr: prefix from all Address instances in unit tests
Alrighttt Nov 15, 2024
862adf2
fix merkle_proof field in StateElement serde - walletd is capable of …
Alrighttt Nov 15, 2024
c4027f7
add more explitcit unit test for StateElement serde
Alrighttt Nov 15, 2024
aefef42
update serde test to account for prefix removals and state element ch…
Alrighttt Nov 15, 2024
a9bce54
rename symbol BlockID -> BlockId
Alrighttt Nov 15, 2024
61a12b3
derive From<BlockId> for Hash256 and vice versa instead of manually i…
Alrighttt Nov 15, 2024
2a87e25
remove unused import
Alrighttt Nov 15, 2024
26e634f
remove bid: prefix from BlockId serde
Alrighttt Nov 15, 2024
c75b0e0
update SiacoinElement unit test to account for type changes
Alrighttt Nov 15, 2024
d68afb8
refactor Signature serde to remove sig: prefix
Alrighttt Nov 15, 2024
aa01bf2
use Signature::try_from instead of now removed Signature::from_bytes
Alrighttt Nov 15, 2024
ab201b9
update serde tests v2ContractResolution event expected case JSON
Alrighttt Nov 15, 2024
3e39423
manually impl Serialize Deserialize for Hash256 for better error mess…
Alrighttt Nov 15, 2024
83df4f3
remove prefix from varoius unit tests
Alrighttt Nov 15, 2024
5ab78a0
fix V2FileContractElement field name serde
Alrighttt Nov 15, 2024
27ee275
ignore several tests that rely on hardcoded walletd server
Alrighttt Nov 15, 2024
8cd399c
fix expected case in various events unit tests
Alrighttt Nov 15, 2024
bec8f12
cargo clippy
Alrighttt Nov 15, 2024
5c562e8
add explicit ArbitraryData type and implement serde
Alrighttt Nov 18, 2024
1f73fc6
add ArbitraryData roundtrip serde unit test
Alrighttt Nov 18, 2024
9dfee2b
derive From, Into for ArbitraryData newtype
Alrighttt Nov 18, 2024
5a3e16e
fix ConsensusTipstateResponse serde
Alrighttt Nov 19, 2024
d9ae721
allow unknown fields in V2Transaction serde because walletd will some…
Alrighttt Nov 19, 2024
9a0940f
fix trailing ? on endpoint Urls that have query params but none are p…
Alrighttt Nov 19, 2024
abe0f50
increase native client timeout from 10 seconds to 30
Alrighttt Nov 19, 2024
13065a4
add ApiClientHelpers::get_unconfirmed_transaction and dev comments re…
Alrighttt Nov 19, 2024
018ec00
Merge pull request #9 from KomodoPlatform/refactor/remove-serde-prefixes
Alrighttt Dec 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,409 changes: 959 additions & 450 deletions Cargo.lock

Large diffs are not rendered by default.

23 changes: 17 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,32 @@ name = "sia-rust"
version = "0.1.0"
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
# FIXME Optional fields missing from Cargo.toml: 'description', 'repository', and 'license'. These are not necessary, but recommended

[lib]
crate-type = ["cdylib", "rlib"]

[dependencies]
ed25519-dalek = { version = "1.0.1", features = ["serde"] }
curve25519-dalek = "3.2.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1", features = ["preserve_order", "raw_value"] }
serde_with = "1.14.0"
nom = "6.1.2"
blake2b_simd = "0.5"
chrono = { version = "0.4.23", "features" = ["serde"] }
log = { version = "0.4.19", "features" = ["std"] }
hex = "0.4.2"
reqwest = { version = "0.11.9", features = ["json"]}
base64 = "0.21.2"
url = { version = "2.2.2", features = ["serde"] }
derive_more = "0.99.11"
rustc-hex = "2"
mm2_net = { path = "../../mm2_net" }
http = "0.2.12"
common = { path = "../../common" }
async-trait = "0.1.76"
thiserror = "1.0.40"
percent-encoding = "2.1.0"

[dev-dependencies]
once_cell = "1.18.0"
tokio = "1.28.2"

[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.2.9", features = ["js"] }
Expand All @@ -42,3 +42,14 @@ web-sys = { version = "0.3.55", features = ["Request", "RequestInit", "RequestMo

[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = { version = "0.3.2" }

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
tokio = { version = "1.28.2", features = ["rt", "macros"] }


# TODO; choose between rustls-tls or native-tls for linux target
# for linux target, this requires an additional dep, `libssl-dev`(debian)
# either install libssl-dev in all CI's or use rustls-tls
# All other targets use the system's default ssl implementation
[target.x86_64-unknown-linux-gnu.dependencies]
reqwest = { version = "0.11.9", features = ["json", "rustls-tls"] }
Loading