@dashevo/dapi-grpc 1.8.0-rc.2 → 2.0.0-dev.1
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/.eslintrc +3 -0
- package/Cargo.toml +25 -14
- package/build.rs +80 -20
- package/clients/platform/v0/nodejs/platform_pbjs.js +21836 -132
- package/clients/platform/v0/nodejs/platform_protoc.js +38698 -17593
- package/clients/platform/v0/web/platform_pb.d.ts +2865 -99
- package/clients/platform/v0/web/platform_pb.js +38698 -17593
- package/clients/platform/v0/web/platform_pb_service.d.ts +209 -0
- package/clients/platform/v0/web/platform_pb_service.js +440 -0
- package/package.json +3 -3
- package/protos/platform/v0/platform.proto +588 -37
- package/src/lib.rs +19 -10
package/src/lib.rs
CHANGED
|
@@ -4,36 +4,45 @@ pub use prost::Message;
|
|
|
4
4
|
pub mod core {
|
|
5
5
|
#![allow(non_camel_case_types)]
|
|
6
6
|
pub mod v0 {
|
|
7
|
-
|
|
7
|
+
// Note: only one of the features can be analyzed at a time
|
|
8
|
+
#[cfg(all(feature = "server", not(target_arch = "wasm32")))]
|
|
8
9
|
include!("core/server/org.dash.platform.dapi.v0.rs");
|
|
9
10
|
|
|
10
|
-
#[cfg(all(
|
|
11
|
+
#[cfg(all(
|
|
12
|
+
feature = "client",
|
|
13
|
+
not(feature = "server"),
|
|
14
|
+
not(target_arch = "wasm32")
|
|
15
|
+
))]
|
|
11
16
|
include!("core/client/org.dash.platform.dapi.v0.rs");
|
|
12
17
|
|
|
13
|
-
#[cfg(
|
|
14
|
-
include!("core/
|
|
18
|
+
#[cfg(target_arch = "wasm32")]
|
|
19
|
+
include!("core/wasm/org.dash.platform.dapi.v0.rs");
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
22
|
|
|
18
23
|
#[cfg(feature = "platform")]
|
|
19
24
|
pub mod platform {
|
|
20
25
|
pub mod v0 {
|
|
21
|
-
#[cfg(all(feature = "server", not(
|
|
26
|
+
#[cfg(all(feature = "server", not(target_arch = "wasm32")))]
|
|
22
27
|
include!("platform/server/org.dash.platform.dapi.v0.rs");
|
|
23
28
|
|
|
24
|
-
#[cfg(all(
|
|
29
|
+
#[cfg(all(
|
|
30
|
+
feature = "client",
|
|
31
|
+
not(feature = "server"),
|
|
32
|
+
not(target_arch = "wasm32")
|
|
33
|
+
))]
|
|
25
34
|
include!("platform/client/org.dash.platform.dapi.v0.rs");
|
|
26
35
|
|
|
27
|
-
#[cfg(
|
|
28
|
-
include!("platform/
|
|
36
|
+
#[cfg(target_arch = "wasm32")]
|
|
37
|
+
include!("platform/wasm/org.dash.platform.dapi.v0.rs");
|
|
29
38
|
}
|
|
30
39
|
|
|
31
40
|
#[cfg(feature = "tenderdash-proto")]
|
|
32
41
|
pub use tenderdash_proto as proto;
|
|
33
42
|
|
|
34
|
-
#[cfg(any(feature = "server", feature = "client"))]
|
|
43
|
+
#[cfg(any(feature = "server", feature = "client", target_arch = "wasm32"))]
|
|
35
44
|
mod versioning;
|
|
36
|
-
#[cfg(any(feature = "server", feature = "client"))]
|
|
45
|
+
#[cfg(any(feature = "server", feature = "client", target_arch = "wasm32"))]
|
|
37
46
|
pub use versioning::{VersionedGrpcMessage, VersionedGrpcResponse};
|
|
38
47
|
}
|
|
39
48
|
|