Compare commits
2 commits
f11235752b
...
1232ac3611
Author | SHA1 | Date | |
---|---|---|---|
1232ac3611 | |||
c8cd06d325 |
6 changed files with 21 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
[configuration]
|
[configuration]
|
||||||
entry_symbol = "gdext_rust_init"
|
entry_symbol = "gdext_rust_init"
|
||||||
compatibility_minimum = 4.1
|
compatibility_minimum = 4.2
|
||||||
reloadable = true
|
reloadable = true
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
|
|
10
rust/Cargo.lock
generated
10
rust/Cargo.lock
generated
|
@ -434,11 +434,21 @@ name = "gd-wireportal"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ashpd",
|
"ashpd",
|
||||||
|
"gdext_coroutines",
|
||||||
"godot",
|
"godot",
|
||||||
"godot_tokio",
|
"godot_tokio",
|
||||||
"pipewire",
|
"pipewire",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "gdext_coroutines"
|
||||||
|
version = "0.7.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "92b254068dbdb5a5a9d702039f5b741ac9a454617c28f69c5cc6c31792c7d11d"
|
||||||
|
dependencies = [
|
||||||
|
"godot",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gdextension-api"
|
name = "gdextension-api"
|
||||||
version = "0.2.2"
|
version = "0.2.2"
|
||||||
|
|
|
@ -5,6 +5,7 @@ edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ashpd = "0.11.0"
|
ashpd = "0.11.0"
|
||||||
|
gdext_coroutines = "0.7.1"
|
||||||
godot = "0.2.4"
|
godot = "0.2.4"
|
||||||
godot_tokio = "0.3.0"
|
godot_tokio = "0.3.0"
|
||||||
pipewire = "0.8.0"
|
pipewire = "0.8.0"
|
||||||
|
|
2
rust/rust-toolchain.toml
Normal file
2
rust/rust-toolchain.toml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[toolchain]
|
||||||
|
channel = "nightly"
|
|
@ -1,3 +1,9 @@
|
||||||
|
#![feature(coroutines)]
|
||||||
|
#![feature(coroutine_trait)]
|
||||||
|
#![feature(stmt_expr_attributes)]
|
||||||
|
#![feature(unboxed_closures)]
|
||||||
|
#![cfg_attr(feature = "async", feature(async_fn_traits))]
|
||||||
|
|
||||||
use godot::{classes::Engine, prelude::*};
|
use godot::{classes::Engine, prelude::*};
|
||||||
use godot_tokio::AsyncRuntime;
|
use godot_tokio::AsyncRuntime;
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ use ashpd::desktop::{
|
||||||
};
|
};
|
||||||
use godot::prelude::*;
|
use godot::prelude::*;
|
||||||
use godot_tokio::AsyncRuntime;
|
use godot_tokio::AsyncRuntime;
|
||||||
use std::thread;
|
//use std::thread;
|
||||||
|
|
||||||
#[derive(GodotClass)]
|
#[derive(GodotClass)]
|
||||||
#[class(base=RefCounted)]
|
#[class(base=RefCounted)]
|
||||||
|
|
Loading…
Reference in a new issue