summaryrefslogtreecommitdiff
path: root/cli/ops/mod.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2019-11-14 18:10:25 +0100
committerRy Dahl <ry@tinyclouds.org>2019-11-14 12:10:25 -0500
commit8b90b8e88325d28fe41d8312ea91417b6e66a12e (patch)
treea80d85de86353e05a5e59fe8b9890635dcbf200c /cli/ops/mod.rs
parent38ffe8886db104068af07cd5efe3d83f42da8ed6 (diff)
refactor: per-worker resource table, take 2 (#3342)
- removes global `RESOURCE_TABLE` - resource tables are now created per `Worker` in `State` - renames `CliResource` to `StreamResource` and moves all logic related to it to `cli/ops/io.rs` - removes `cli/resources.rs` - adds `state` argument to `op_read` and `op_write` and consequently adds `stateful_minimal_op` to `State` - IMPORTANT NOTE: workers don't have access to process stdio - this is caused by fact that dropping worker would close stdout for process (because it's constructed from raw handle, which closes underlying file descriptor on drop)
Diffstat (limited to 'cli/ops/mod.rs')
-rw-r--r--cli/ops/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/ops/mod.rs b/cli/ops/mod.rs
index 4e6eb37c8..9b33d5918 100644
--- a/cli/ops/mod.rs
+++ b/cli/ops/mod.rs
@@ -5,6 +5,7 @@ mod dispatch_minimal;
pub use dispatch_json::json_op;
pub use dispatch_json::JsonOp;
pub use dispatch_minimal::minimal_op;
+pub use dispatch_minimal::MinimalOp;
pub mod compiler;
pub mod errors;