File: 2004_avoid_js.patch

package info (click to toggle)
oxigraph 0.5.5%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 7,944 kB
  • sloc: python: 1,961; cpp: 158; sh: 145; makefile: 42
file content (75 lines) | stat: -rw-r--r-- 2,019 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Description: avoid building embedded crate oxigraph_js
 Needs tool wasm-pack not in Debian
Author: Jonas Smedegaard <dr@jones.dk>
Bug-Debian: https://bugs.debian.org/1126037
Forwarded: not-needed
Last-Update: 2023-08-26
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,6 @@
 [workspace]
 members = [
     "cli",
-    "js",
     "lib/oxigraph",
     "lib/oxjsonld",
     "lib/oxrdf",
@@ -47,9 +46,7 @@
 flate2 = "1.0"
 geo = ">=0.28, <0.32"  # TODO: upgrade when the dependency on old getrandom will be dropped
 geojson = "0.24"
-getrandom = "0.3.4"
 hex = "0.4"
-js-sys = "0.3.85"
 json-event-parser = "0.2.3"
 libc = "0.2.155"
 md-5 = "0.10"
@@ -302,6 +299,3 @@
 lto = true
 codegen-units = 1
 panic = "abort"
-
-[profile.release.package.oxigraph-js]
-opt-level = "z"
--- a/lib/oxigraph/Cargo.toml
+++ b/lib/oxigraph/Cargo.toml
@@ -17,7 +17,6 @@
 [features]
 default = ["rocksdb"]
 rocksdb = ["oxrocksdb-sys"]
-js = ["getrandom/wasm_js", "oxsdatatypes/js", "js-sys"]
 http-client = ["oxhttp"]
 http-client-native-tls = ["http-client", "oxhttp/native-tls"]
 http-client-rustls-native = ["http-client", "oxhttp/rustls-ring-native"]
@@ -44,11 +43,6 @@
 oxhttp = { workspace = true, optional = true }
 oxrocksdb-sys = { workspace = true, optional = true }
 
-[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies]
-getrandom.workspace = true
-js-sys = { workspace = true, optional = true }
-rand = "0.9"
-
 [target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
 csv.workspace = true
 oxhttp = { workspace = true, features = ["rustls-ring-native"] }
--- a/lib/oxsdatatypes/Cargo.toml
+++ b/lib/oxsdatatypes/Cargo.toml
@@ -12,15 +12,11 @@
 rust-version.workspace = true
 
 [features]
-js = ["js-sys"]
 custom-now = []
 
 [dependencies]
 thiserror.workspace = true
 
-[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies]
-js-sys = { workspace = true, optional = true }
-
 [lints]
 workspace = true