@dashevo/dapi-grpc 3.0.1 → 3.1.0-dev.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/lib.rs CHANGED
@@ -6,17 +6,26 @@ pub mod core {
6
6
  pub mod v0 {
7
7
  // Note: only one of the features can be analyzed at a time
8
8
  #[cfg(all(feature = "server", not(target_arch = "wasm32")))]
9
- include!("core/server/org.dash.platform.dapi.v0.rs");
9
+ include!(concat!(
10
+ env!("DAPI_GRPC_OUT_DIR"),
11
+ "/core/server/org.dash.platform.dapi.v0.rs"
12
+ ));
10
13
 
11
14
  #[cfg(all(
12
15
  feature = "client",
13
16
  not(feature = "server"),
14
17
  not(target_arch = "wasm32")
15
18
  ))]
16
- include!("core/client/org.dash.platform.dapi.v0.rs");
19
+ include!(concat!(
20
+ env!("DAPI_GRPC_OUT_DIR"),
21
+ "/core/client/org.dash.platform.dapi.v0.rs"
22
+ ));
17
23
 
18
24
  #[cfg(target_arch = "wasm32")]
19
- include!("core/wasm/org.dash.platform.dapi.v0.rs");
25
+ include!(concat!(
26
+ env!("DAPI_GRPC_OUT_DIR"),
27
+ "/core/wasm/org.dash.platform.dapi.v0.rs"
28
+ ));
20
29
  }
21
30
  }
22
31
 
@@ -24,17 +33,26 @@ pub mod core {
24
33
  pub mod platform {
25
34
  pub mod v0 {
26
35
  #[cfg(all(feature = "server", not(target_arch = "wasm32")))]
27
- include!("platform/server/org.dash.platform.dapi.v0.rs");
36
+ include!(concat!(
37
+ env!("DAPI_GRPC_OUT_DIR"),
38
+ "/platform/server/org.dash.platform.dapi.v0.rs"
39
+ ));
28
40
 
29
41
  #[cfg(all(
30
42
  feature = "client",
31
43
  not(feature = "server"),
32
44
  not(target_arch = "wasm32")
33
45
  ))]
34
- include!("platform/client/org.dash.platform.dapi.v0.rs");
46
+ include!(concat!(
47
+ env!("DAPI_GRPC_OUT_DIR"),
48
+ "/platform/client/org.dash.platform.dapi.v0.rs"
49
+ ));
35
50
 
36
51
  #[cfg(target_arch = "wasm32")]
37
- include!("platform/wasm/org.dash.platform.dapi.v0.rs");
52
+ include!(concat!(
53
+ env!("DAPI_GRPC_OUT_DIR"),
54
+ "/platform/wasm/org.dash.platform.dapi.v0.rs"
55
+ ));
38
56
  }
39
57
 
40
58
  #[cfg(feature = "tenderdash-proto")]
@@ -57,14 +75,20 @@ pub(crate) mod dapi {
57
75
  pub mod drive {
58
76
  pub mod v0 {
59
77
  #[cfg(all(feature = "server", not(target_arch = "wasm32")))]
60
- include!("drive/server/org.dash.platform.drive.v0.rs");
78
+ include!(concat!(
79
+ env!("DAPI_GRPC_OUT_DIR"),
80
+ "/drive/server/org.dash.platform.drive.v0.rs"
81
+ ));
61
82
 
62
83
  #[cfg(all(
63
84
  feature = "client",
64
85
  not(feature = "server"),
65
86
  not(target_arch = "wasm32")
66
87
  ))]
67
- include!("drive/client/org.dash.platform.drive.v0.rs");
88
+ include!(concat!(
89
+ env!("DAPI_GRPC_OUT_DIR"),
90
+ "/drive/client/org.dash.platform.drive.v0.rs"
91
+ ));
68
92
  }
69
93
 
70
94
  #[cfg(feature = "tenderdash-proto")]
@@ -19,7 +19,7 @@
19
19
  /// return None;
20
20
  /// }
21
21
  ///
22
- /// Some(SomeObject {
22
+ /// Some(SomeObject {
23
23
  /// field: u32::from_be_bytes(bytes.try_into().expect("4 bytes")),
24
24
  /// })
25
25
  /// }
package/.eslintignore DELETED
@@ -1,3 +0,0 @@
1
- clients/*/v*/web/
2
- clients/*/v*/nodejs/*_protoc.js
3
- clients/*/v*/nodejs/*_pbjs.js
package/.eslintrc DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "extends": "airbnb-base",
3
- "env": {
4
- "es2020": true
5
- },
6
- "rules": {
7
- "import/no-extraneous-dependencies": ["error", { "packageDir": "." }],
8
- "no-plusplus": 0,
9
- "eol-last": [
10
- "error",
11
- "always"
12
- ],
13
- "class-methods-use-this": "off",
14
- "curly": [
15
- "error",
16
- "all"
17
- ]
18
- }
19
- }
@@ -1,9 +0,0 @@
1
- {
2
- "env": {
3
- "node": true,
4
- "mocha": true
5
- },
6
- "globals": {
7
- "expect": true
8
- }
9
- }