Shuffle some code around, update changelog

This commit is contained in:
Filip Tibell 2023-03-21 16:53:09 +01:00
parent 9e6cd4b0af
commit 6a289583bf
No known key found for this signature in database
7 changed files with 12 additions and 5 deletions

View file

@ -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")`

View file

@ -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},
}; };

View file

@ -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,
}; };

View file

@ -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;

View file

@ -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};

View file

@ -0,0 +1,3 @@
mod encode_decode;
pub use encode_decode::{EncodeDecodeConfig, EncodeDecodeFormat};