File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
[workspace ]
2
- resolver = " 2"
3
2
members = [
4
3
" codegen" ,
5
4
" postgres" ,
Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ license = "MIT/Apache-2.0"
8
8
repository = " https://github.com/sfackler/rust-postgres"
9
9
readme = " ../README.md"
10
10
11
+ [features ]
12
+ default = []
13
+ js = [" getrandom/js" ]
14
+
11
15
[dependencies ]
12
16
base64 = " 0.21"
13
17
byteorder = " 1.0"
@@ -19,6 +23,4 @@ memchr = "2.0"
19
23
rand = " 0.8"
20
24
sha2 = " 0.10"
21
25
stringprep = " 0.1"
22
-
23
- [target .'cfg(target_arch = "wasm32")' .dependencies ]
24
- getrandom = { version = " 0.2.9" , features = [" js" ] }
26
+ getrandom = { version = " 0.2" , optional = true }
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ with-uuid-0_8 = ["postgres-types/with-uuid-0_8"]
40
40
with-uuid-1 = [" postgres-types/with-uuid-1" ]
41
41
with-time-0_2 = [" postgres-types/with-time-0_2" ]
42
42
with-time-0_3 = [" postgres-types/with-time-0_3" ]
43
+ js = [" postgres-protocol/js" ]
43
44
44
45
[dependencies ]
45
46
async-trait = " 0.1"
You can’t perform that action at this time.
0 commit comments