Skip to content

Commit ad941dd

Browse files
Merge pull request #665 from swimos/docs9
Tidy up of crate/module API: Stage 9
2 parents ce1304a + 282efeb commit ad941dd

File tree

11 files changed

+248
-155
lines changed

11 files changed

+248
-155
lines changed

docs/downlink.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ the agent at `"/node"` on the host `"swim://example.remote:8080"`. Here `OpenVal
7777
a `HandlerAction` that results in a value of type:
7878

7979
```rust
80-
swimos::agent::agent_model::downlink::hosted::ValueDownlinkHandle
80+
swimos::agent::agent_model::downlink::ValueDownlinkHandle
8181
```
8282

8383
This handle can be used to set the value of the remote lane, through the downlink.

example_apps/event_downlink/src/consumer/agent.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
use swimos::agent::{
1616
agent_lifecycle::HandlerContext,
17-
agent_model::downlink::hosted::EventDownlinkHandle,
17+
agent_model::downlink::EventDownlinkHandle,
1818
event_handler::{EventHandler, HandlerAction, HandlerActionExt},
1919
lanes::{CommandLane, ValueLane},
2020
lifecycle, projections,

example_apps/local_downlink/src/consumer/agent.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
use swimos::agent::{
1616
agent_lifecycle::HandlerContext,
17-
agent_model::downlink::hosted::ValueDownlinkHandle,
17+
agent_model::downlink::ValueDownlinkHandle,
1818
event_handler::{EventHandler, HandlerAction, HandlerActionExt},
1919
lanes::{CommandLane, ValueLane},
2020
lifecycle, projections,

example_apps/map_downlink/src/consumer/agent.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use example_util::format_map;
1616
use swimos::agent::{
1717
agent_lifecycle::HandlerContext,
18-
agent_model::downlink::hosted::MapDownlinkHandle,
18+
agent_model::downlink::MapDownlinkHandle,
1919
event_handler::{EventHandler, HandlerAction, HandlerActionExt},
2020
lanes::{CommandLane, ValueLane},
2121
lifecycle, projections,

example_apps/value_downlink/src/consumer/agent.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
use swimos::agent::{
1616
agent_lifecycle::HandlerContext,
17-
agent_model::downlink::hosted::ValueDownlinkHandle,
17+
agent_model::downlink::ValueDownlinkHandle,
1818
event_handler::{EventHandler, HandlerAction, HandlerActionExt},
1919
lanes::{CommandLane, ValueLane},
2020
lifecycle, projections,

server/swimos_agent/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub mod agent_lifecycle;
3838
/// and stores.
3939
pub mod agent_model;
4040

41-
/// Configuration types for downlinks started from agent lifecycles.
41+
/// Configuration types for downlinks that are started from agent lifecycles.
4242
pub mod config;
4343

4444
/// Traits and builders for constructing downlink lifecycles for downlinks started from agent lifecycles.

server/swimos_server_app/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ mod util;
6161

6262
pub use self::{
6363
config::{RemoteConnectionsConfig, SwimServerConfig},
64-
server::{BoxServer, Server, ServerBuilder, ServerHandle},
64+
server::{BoxServer, Server, ServerBuilder, ServerHandle, UnresolvableRoute},
6565
util::AgentExt,
6666
};
6767

6868
pub use error::{AmbiguousRoutes, ServerBuilderError, ServerError};
69-
pub use ratchet::deflate::DeflateConfig;
69+
pub use ratchet::deflate::{DeflateConfig, WindowBits};
7070
pub use swimos_introspection::IntrospectionConfig;
7171
use swimos_utilities::byte_channel::{ByteReader, ByteWriter};
7272

server/swimos_server_app/src/server/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ mod runtime;
2424
mod store;
2525

2626
pub use builder::ServerBuilder;
27-
27+
pub use error::UnresolvableRoute;
2828
use tokio::sync::{mpsc, oneshot};
2929

3030
use crate::error::ServerError;
3131

32-
use self::{error::UnresolvableRoute, runtime::StartAgentRequest};
32+
use self::runtime::StartAgentRequest;
3333

3434
/// A handle used to interact with a running Swim server instance. This can be used to find the interface
3535
/// on which the server is listening, instruct the server to stop and explicitly start agents.

swimos/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ authors = ["Swim Inc. developers info@swim.ai"]
55
edition = "2021"
66

77
[features]
8-
default = ["agent"]
8+
default = []
99
all = ["server", "agent", "json"]
10-
server = ["dep:swimos_server_app"]
10+
server = ["dep:swimos_server_app", "dep:swimos_remote"]
1111
agent = ["dep:swimos_agent", "dep:swimos_agent_derive"]
1212
json = ["agent", "swimos_agent/json"]
1313

@@ -19,6 +19,8 @@ swimos_recon = { path = "../api/formats/swimos_recon" }
1919
swimos_server_app = { path = "../server/swimos_server_app", optional = true }
2020
swimos_agent = { path = "../server/swimos_agent", optional = true }
2121
swimos_agent_derive = { path = "../server/swimos_agent_derive", optional = true }
22+
swimos_remote = { path = "../runtime/swimos_remote", optional = true}
23+
swimos_form = { path = "../api/swimos_form" }
2224

2325
[dev-dependencies]
2426
parking_lot = { workspace = true }

0 commit comments

Comments
 (0)