Skip to content

Commit

Permalink
[Release] Airup v0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sisungo committed Feb 26, 2024
1 parent d38c808 commit d932ecb
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
Changes in v0.8.1:
* \[Feature\] Custom build manifest overriding
* \[Feature\] Service Event Handlers
* \[Feature\] Initial SELinux support -- SELinux Policy for Airup
* \[Developer\] Allow getting `build_manifest.json` from C SDK
* \[Fix\] Corrupt implementation of `line_piper`
* \[Performance\] Remove double-register of `info.*` APIs

Changes in v0.8.0:
* \[Feature\] Support of resource limitation (currently cgroup is supported on Linux)
* \[Performance\] Switch to single-threaded async runtime to decrease CPU and memory usage
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ supervisor or the `init` daemon (`pid == 1`).

## Project Status
Maintained Versions:
- Current Mainline Version: `0.8.0`
- Current Release Version: `0.8.0`
- Current Mainline Version: `0.8.1`
- Current Release Version: `0.8.1`

⚠️ **WARNING**: The project is not widely tested yet and should **NOT** be used in production environments. It may contain
errors, bugs or quality issues. Welcome to open an issue to report bugs.
Expand Down
2 changes: 1 addition & 1 deletion airup-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors = ["sisungo <[email protected]>"]
description = "SDK library of Airup"
documentation = "https://docs.rs/airup-sdk"
repository = "https://github.com/sisungo/airup"
version = "0.8.0"
version = "0.8.1"
edition = "2021"
license = "MIT"

Expand Down
1 change: 1 addition & 0 deletions airup-sdk/src/debug.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// An extension trait to provide `debug.*` API invocation.
pub trait ConnectionExt<'a>: crate::Connection {
fn is_forking_supervisable(&'a mut self) -> Self::Invoke<'a, bool> {
self.invoke("debug.is_forking_supervisable", ())
Expand Down
1 change: 1 addition & 0 deletions airup-sdk/src/info.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use crate::build::BuildManifest;

/// An extension trait to provide `info.*` API invocation.
pub trait ConnectionExt<'a>: crate::Connection {
fn build_manifest(&'a mut self) -> Self::Invoke<'a, BuildManifest> {
self.invoke("info.build_manifest", ())
Expand Down
3 changes: 3 additions & 0 deletions airup-sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,14 @@ pub fn socket_path() -> &'static Path {
})
}

/// A trait that unifies `async` and `non-async` connections.
pub trait Connection {
/// Return type of the [`Connection::invoke`] method.
type Invoke<'a, T: 'a>
where
Self: 'a;

/// Invokes specified method with given parameters on the connection, then wait for a response.
fn invoke<'a, P: Serialize + 'a, T: DeserializeOwned + 'a>(
&'a mut self,
method: &'a str,
Expand Down
1 change: 1 addition & 0 deletions airup-sdk/src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ pub struct EnteredMilestone {
pub finish_timestamp: i64,
}

/// An extension trait to provide `system.*` API invocation.
pub trait ConnectionExt<'a>: crate::Connection {
/// Sideloads a service.
fn sideload_service(
Expand Down
2 changes: 1 addition & 1 deletion airup/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "airup"
authors = ["sisungo <[email protected]>"]
version = "0.8.0"
version = "0.8.1"
edition = "2021"
license = "MIT"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion airupd/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "airupd"
authors = ["sisungo <[email protected]>"]
version = "0.8.0"
version = "0.8.1"
edition = "2021"
license = "MIT"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion airupfx/airupfx-io/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "airupfx-io"
authors = ["sisungo <[email protected]>"]
version = "0.7.1"
version = "0.8.1"
edition = "2021"
license = "MIT"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion airupfx/airupfx-process/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "airupfx-process"
authors = ["sisungo <[email protected]>"]
version = "0.6.1"
version = "0.8.1"
edition = "2021"
license = "MIT"
publish = false
Expand Down

0 comments on commit d932ecb

Please sign in to comment.