mirror of
https://github.com/lune-org/lune.git
synced 2024-12-13 13:30:38 +00:00
Shuffle some code around, update changelog
This commit is contained in:
parent
9e6cd4b0af
commit
6a289583bf
7 changed files with 12 additions and 5 deletions
|
@ -28,6 +28,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
This built-in contains previously available functions `encode` and `decode` from the `net` global. <br />
|
This built-in contains previously available functions `encode` and `decode` from the `net` global. <br />
|
||||||
Note that this is **_only_** available using the new `require` syntax, and is not available as a global.
|
Note that this is **_only_** available using the new `require` syntax, and is not available as a global.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Renamed the global `info` function to `printinfo` to make it less ambiguous
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
- Removed experimental `net.encode` and `net.decode` functions, since they are now available using `require("@lune/serde")`
|
- Removed experimental `net.encode` and `net.decode` functions, since they are now available using `require("@lune/serde")`
|
||||||
|
|
|
@ -8,9 +8,10 @@ use tokio::{sync::mpsc, task};
|
||||||
|
|
||||||
use crate::lua::{
|
use crate::lua::{
|
||||||
net::{
|
net::{
|
||||||
EncodeDecodeConfig, EncodeDecodeFormat, NetClient, NetClientBuilder, NetLocalExec,
|
NetClient, NetClientBuilder, NetLocalExec, NetService, NetWebSocket, RequestConfig,
|
||||||
NetService, NetWebSocket, RequestConfig, ServeConfig,
|
ServeConfig,
|
||||||
},
|
},
|
||||||
|
serde::{EncodeDecodeConfig, EncodeDecodeFormat},
|
||||||
table::TableBuilder,
|
table::TableBuilder,
|
||||||
task::{TaskScheduler, TaskSchedulerAsyncExt},
|
task::{TaskScheduler, TaskSchedulerAsyncExt},
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
use mlua::prelude::*;
|
use mlua::prelude::*;
|
||||||
|
|
||||||
use crate::lua::{
|
use crate::lua::{
|
||||||
net::{EncodeDecodeConfig, EncodeDecodeFormat},
|
serde::{EncodeDecodeConfig, EncodeDecodeFormat},
|
||||||
table::TableBuilder,
|
table::TableBuilder,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ pub mod async_ext;
|
||||||
pub mod fs;
|
pub mod fs;
|
||||||
pub mod net;
|
pub mod net;
|
||||||
pub mod process;
|
pub mod process;
|
||||||
|
pub mod serde;
|
||||||
pub mod stdio;
|
pub mod stdio;
|
||||||
pub mod table;
|
pub mod table;
|
||||||
pub mod task;
|
pub mod task;
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
mod client;
|
mod client;
|
||||||
mod config;
|
mod config;
|
||||||
mod response;
|
mod response;
|
||||||
mod serde;
|
|
||||||
mod server;
|
mod server;
|
||||||
mod websocket;
|
mod websocket;
|
||||||
|
|
||||||
pub use self::serde::{EncodeDecodeConfig, EncodeDecodeFormat};
|
|
||||||
pub use client::{NetClient, NetClientBuilder};
|
pub use client::{NetClient, NetClientBuilder};
|
||||||
pub use config::{RequestConfig, ServeConfig};
|
pub use config::{RequestConfig, ServeConfig};
|
||||||
pub use response::{NetServeResponse, NetServeResponseKind};
|
pub use response::{NetServeResponse, NetServeResponseKind};
|
||||||
|
|
3
packages/lib/src/lua/serde/mod.rs
Normal file
3
packages/lib/src/lua/serde/mod.rs
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
mod encode_decode;
|
||||||
|
|
||||||
|
pub use encode_decode::{EncodeDecodeConfig, EncodeDecodeFormat};
|
Loading…
Reference in a new issue