mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
prep susres for crates.io
This commit is contained in:
parent
a5bd84f5ca
commit
34fd38db92
3 changed files with 12 additions and 4 deletions
|
|
@ -3,10 +3,14 @@ name = "xous-susres"
|
|||
version = "0.1.0"
|
||||
authors = ["bunnie <bunnie@kosagi.com>"]
|
||||
edition = "2018"
|
||||
description = "Manager of suspend/resume operations"
|
||||
description = "Manager of suspend/resume operations implementation"
|
||||
license = "MIT OR Apache-2.0"
|
||||
repository = "https://github.com/betrusted-io/xous-core/"
|
||||
homepage = "https://betrusted.io/xous-book/"
|
||||
|
||||
# Dependency versions enforced by Cargo.lock.
|
||||
[dependencies]
|
||||
xous-api-susres = { version = "0.9.0", path = "../../api/susres" }
|
||||
xous = "0.9.9"
|
||||
log-server = { version = "0.1.3", package = "xous-api-log" }
|
||||
xous-names = { version = "0.9.3", package = "xous-api-names" }
|
||||
|
|
|
|||
5
services/susres/README.md
Normal file
5
services/susres/README.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# Xous Service: susres
|
||||
|
||||
This crate implements the Xous suspend/resume service.
|
||||
|
||||
See the [api crate](https://crates.io/crates/xous-api-susres) for documentation.
|
||||
|
|
@ -5,8 +5,7 @@
|
|||
|
||||
mod murmur3;
|
||||
|
||||
mod api;
|
||||
use api::{Opcode, ScalarHook, SuspendEventCallback};
|
||||
use xous_api_susres::*;
|
||||
|
||||
use num_traits::{ToPrimitive, FromPrimitive};
|
||||
use xous_ipc::Buffer;
|
||||
|
|
@ -460,7 +459,7 @@ struct ScalarCallback {
|
|||
ready_to_suspend: bool,
|
||||
token: u32,
|
||||
failed_to_suspend: bool,
|
||||
order: crate::api::SuspendOrder,
|
||||
order: xous_api_susres::api::SuspendOrder,
|
||||
}
|
||||
|
||||
#[derive(Debug, num_derive::FromPrimitive, num_derive::ToPrimitive)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue