8000 Isolated Processes 16: Implement Remote Backend by marti4d · Pull Request #204 · rust-minidump/minidump-writer · GitHub
[go: up one dir, main page]

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ memmap2 = "0.9"
byteorder = "1.4"
error-graph = { version = "0.1.1", features = ["serde"] }
failspot = "0.2.0"
process-backend = { version = "0.1.0", path = "crates/linux/process-backend", features = ["testing"] }
process-backend = { version = "0.1.0", path = "crates/linux/process-backend", features = ["postcard", "testing", "unix_stream"] }

# Used for parsing procfs info.
# default-features is disabled since it pulls in chrono
Expand Down
6 changes: 6 additions & 0 deletions crates/linux/process-backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ rust-version.workspace = true
license.workspace = true

[features]
postcard = ["dep:postcard"]
testing = []
unix_stream = []

[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies]
libc.workspace = true
postcard = { version = "1.1.3", default-features = false, optional = true }
process-reader = { version = "0.1.0", path = "../../process-reader", features = ["serde"] }
serde.workspace = true
thiserror.workspace = true

[dev-dependencies]
process-backend = { path = ".", features = ["postcard", "testing", "unix_stream"] }
5 changes: 5 additions & 0 deletions crates/linux/process-backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ mod drop_fail_handler;

pub mod local;
pub mod regs;
pub mod remote;

mod wrapper;

Expand Down Expand Up @@ -94,6 +95,10 @@ pub enum ProcessReaderKind {
pub enum Error {
#[error("there was a failure making a direct syscall")]
Local(#[source] local::Error),
#[error("the remote executor returned an error")]
Executor(#[source] remote::executor::Error),
#[error("there was an error transporting the request to/from the remote executor")]
Transport(#[source] remote::backend::transport::Error),
#[error("buffer was too small to contain the result")]
BufferTooSmall,
}
Loading
Loading
0