Fix compile with nRPC, bump major version
This commit is contained in:
parent
d23dd404c4
commit
b7ed5d1e1c
7 changed files with 23 additions and 19 deletions
12
Cargo.lock
generated
12
Cargo.lock
generated
|
@ -794,7 +794,7 @@ checksum = "e5ce46fe64a9d73be07dcbe690a38ce1b293be448fd8ce1e6c1b8062c9f72c6a"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nrpc"
|
name = "nrpc"
|
||||||
version = "0.10.0"
|
version = "1.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"bytes",
|
"bytes",
|
||||||
|
@ -804,7 +804,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nrpc-build"
|
name = "nrpc-build"
|
||||||
version = "0.10.0"
|
version = "1.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"nrpc",
|
"nrpc",
|
||||||
"prettyplease 0.2.10",
|
"prettyplease 0.2.10",
|
||||||
|
@ -1509,7 +1509,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "usdpl-back"
|
name = "usdpl-back"
|
||||||
version = "0.11.0"
|
version = "1.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-lock",
|
"async-lock",
|
||||||
"async-recursion",
|
"async-recursion",
|
||||||
|
@ -1529,7 +1529,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "usdpl-build"
|
name = "usdpl-build"
|
||||||
version = "0.11.0"
|
version = "1.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"nrpc-build",
|
"nrpc-build",
|
||||||
"prettyplease 0.2.10",
|
"prettyplease 0.2.10",
|
||||||
|
@ -1542,7 +1542,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "usdpl-core"
|
name = "usdpl-core"
|
||||||
version = "0.11.0"
|
version = "1.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aes-gcm-siv",
|
"aes-gcm-siv",
|
||||||
"base64",
|
"base64",
|
||||||
|
@ -1551,7 +1551,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "usdpl-front"
|
name = "usdpl-front"
|
||||||
version = "0.11.0"
|
version = "1.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"console_error_panic_hook",
|
"console_error_panic_hook",
|
||||||
"futures",
|
"futures",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "usdpl-back"
|
name = "usdpl-back"
|
||||||
version = "0.11.0"
|
version = "1.0.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["NGnius <ngniusness@gmail.com>"]
|
authors = ["NGnius <ngniusness@gmail.com>"]
|
||||||
license = "GPL-3.0-only"
|
license = "GPL-3.0-only"
|
||||||
|
@ -15,12 +15,12 @@ blocking = [] # synchronous API for async functionality, using tokio
|
||||||
#encrypt = ["usdpl-core", "obfstr", "hex"]
|
#encrypt = ["usdpl-core", "obfstr", "hex"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
usdpl-core = { version = "0.11", path = "../usdpl-core"}
|
usdpl-core = { version = "1.0", path = "../usdpl-core"}
|
||||||
|
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
|
|
||||||
# gRPC/protobuf
|
# gRPC/protobuf
|
||||||
nrpc = { version = "0.10", path = "../../nRPC/nrpc", default-features = false, features = [ "server-send" ] }
|
nrpc = { version = "1.0", path = "../../nRPC/nrpc", default-features = false, features = [ "server-send", "async-trait" ] }
|
||||||
async-lock = "2.7"
|
async-lock = "2.7"
|
||||||
prost = "0.11"
|
prost = "0.11"
|
||||||
|
|
||||||
|
@ -43,4 +43,4 @@ hex = { version = "0.4", optional = true }
|
||||||
gettext-ng = { version = "0.4.1" }
|
gettext-ng = { version = "0.4.1" }
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
usdpl-build = { version = "0.11", path = "../usdpl-build" }
|
usdpl-build = { version = "1.0", path = "../usdpl-build", features = [ "object-safe" ] }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "usdpl-build"
|
name = "usdpl-build"
|
||||||
version = "0.11.0"
|
version = "1.0.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["NGnius <ngniusness@gmail.com>"]
|
authors = ["NGnius <ngniusness@gmail.com>"]
|
||||||
license = "GPL-3.0-only"
|
license = "GPL-3.0-only"
|
||||||
|
@ -11,7 +11,7 @@ description = "Universal Steam Deck Plugin Library core"
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
nrpc-build = { version = "0.10", path = "../../nRPC/nrpc-build" }
|
nrpc-build = { version = "1.0", path = "../../nRPC/nrpc-build" }
|
||||||
prost-build = "0.11"
|
prost-build = "0.11"
|
||||||
prost-types = "0.11"
|
prost-types = "0.11"
|
||||||
|
|
||||||
|
@ -21,3 +21,6 @@ quote = "1.0"
|
||||||
syn = "2.0"
|
syn = "2.0"
|
||||||
proc-macro2 = "1.0"
|
proc-macro2 = "1.0"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
object-safe = ["nrpc-build/async-trait"]
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "usdpl-core"
|
name = "usdpl-core"
|
||||||
version = "0.11.0"
|
version = "1.0.0"
|
||||||
authors = ["NGnius <ngniusness@gmail.com>"]
|
authors = ["NGnius <ngniusness@gmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "GPL-3.0-only"
|
license = "GPL-3.0-only"
|
||||||
|
|
|
@ -14,7 +14,7 @@ impl Platform {
|
||||||
{
|
{
|
||||||
Self::Decky
|
Self::Decky
|
||||||
}
|
}
|
||||||
#[cfg(not(any(feature = "decky", feature = "crankshaft")))]
|
#[cfg(not(any(feature = "decky")))]
|
||||||
{
|
{
|
||||||
Self::Any
|
Self::Any
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "usdpl-front"
|
name = "usdpl-front"
|
||||||
version = "0.11.0"
|
version = "1.0.0"
|
||||||
authors = ["NGnius <ngniusness@gmail.com>"]
|
authors = ["NGnius <ngniusness@gmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "GPL-3.0-only"
|
license = "GPL-3.0-only"
|
||||||
|
@ -44,8 +44,8 @@ js-sys = { version = "0.3" }
|
||||||
obfstr = { version = "0.3", optional = true }
|
obfstr = { version = "0.3", optional = true }
|
||||||
hex = { version = "0.4", optional = true }
|
hex = { version = "0.4", optional = true }
|
||||||
|
|
||||||
nrpc = { version = "0.10", path = "../../nRPC/nrpc", default-features = false}
|
nrpc = { version = "1.0", path = "../../nRPC/nrpc", default-features = false}
|
||||||
usdpl-core = { version = "0.11", path = "../usdpl-core" }
|
usdpl-core = { version = "1.0", path = "../usdpl-core" }
|
||||||
prost = "0.11"
|
prost = "0.11"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ use std::sync::atomic::{AtomicU64, Ordering};
|
||||||
|
|
||||||
use futures::{SinkExt, StreamExt, future::{select, Either}};
|
use futures::{SinkExt, StreamExt, future::{select, Either}};
|
||||||
use gloo_net::websocket::{futures::WebSocket, Message};
|
use gloo_net::websocket::{futures::WebSocket, Message};
|
||||||
use nrpc::{ClientHandler, ServiceError, ServiceClientStream, _helpers::async_trait, _helpers::bytes};
|
use nrpc::{ClientHandler, ServiceError, ServiceClientStream, /*_helpers::async_trait,*/ _helpers::bytes};
|
||||||
use wasm_bindgen_futures::spawn_local;
|
use wasm_bindgen_futures::spawn_local;
|
||||||
|
|
||||||
static LAST_ID: AtomicU64 = AtomicU64::new(0);
|
static LAST_ID: AtomicU64 = AtomicU64::new(0);
|
||||||
|
@ -143,8 +143,9 @@ impl WebSocketHandler {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[async_trait::async_trait(?Send)]
|
//#[async_trait::async_trait(?Send)]
|
||||||
impl ClientHandler<'static> for WebSocketHandler {
|
impl ClientHandler<'static> for WebSocketHandler {
|
||||||
|
#[allow(async_fn_in_trait)]
|
||||||
async fn call<'a: 'static>(
|
async fn call<'a: 'static>(
|
||||||
&self,
|
&self,
|
||||||
package: &str,
|
package: &str,
|
||||||
|
|
Loading…
Reference in a new issue