mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +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 />
|
||||
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 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::{
|
||||
net::{
|
||||
EncodeDecodeConfig, EncodeDecodeFormat, NetClient, NetClientBuilder, NetLocalExec,
|
||||
NetService, NetWebSocket, RequestConfig, ServeConfig,
|
||||
NetClient, NetClientBuilder, NetLocalExec, NetService, NetWebSocket, RequestConfig,
|
||||
ServeConfig,
|
||||
},
|
||||
serde::{EncodeDecodeConfig, EncodeDecodeFormat},
|
||||
table::TableBuilder,
|
||||
task::{TaskScheduler, TaskSchedulerAsyncExt},
|
||||
};
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use mlua::prelude::*;
|
||||
|
||||
use crate::lua::{
|
||||
net::{EncodeDecodeConfig, EncodeDecodeFormat},
|
||||
serde::{EncodeDecodeConfig, EncodeDecodeFormat},
|
||||
table::TableBuilder,
|
||||
};
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ pub mod async_ext;
|
|||
pub mod fs;
|
||||
pub mod net;
|
||||
pub mod process;
|
||||
pub mod serde;
|
||||
pub mod stdio;
|
||||
pub mod table;
|
||||
pub mod task;
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
mod client;
|
||||
mod config;
|
||||
mod response;
|
||||
mod serde;
|
||||
mod server;
|
||||
mod websocket;
|
||||
|
||||
pub use self::serde::{EncodeDecodeConfig, EncodeDecodeFormat};
|
||||
pub use client::{NetClient, NetClientBuilder};
|
||||
pub use config::{RequestConfig, ServeConfig};
|
||||
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