diff --git a/examples/trx-plugin-example/Cargo.toml b/examples/trx-plugin-example/Cargo.toml index 48a46c6..1e018a5 100644 --- a/examples/trx-plugin-example/Cargo.toml +++ b/examples/trx-plugin-example/Cargo.toml @@ -11,8 +11,8 @@ edition = "2021" crate-type = ["cdylib"] [dependencies] -trx-backend = { path = "../../src/trx-backend" } +trx-backend = { path = "../../src/trx-server/trx-backend" } trx-core = { path = "../../src/trx-core" } -trx-frontend = { path = "../../src/trx-frontend" } +trx-frontend = { path = "../../src/trx-client/trx-frontend" } tokio = { workspace = true, features = ["full"] } tracing = { workspace = true } diff --git a/examples/trx-plugin-example/README.md b/examples/trx-plugin-example/README.md index 427a922..4d4ccc5 100644 --- a/examples/trx-plugin-example/README.md +++ b/examples/trx-plugin-example/README.md @@ -16,4 +16,4 @@ mkdir -p plugins cp target/release/libtrx_plugin_example.* plugins/ ``` -Run `trx-bin` with `TRX_PLUGIN_DIRS=./plugins` to discover the plugin. +Run `trx-server` or `trx-client` with `TRX_PLUGIN_DIRS=./plugins` to discover the plugin. diff --git a/examples/trx-plugin-example/src/lib.rs b/examples/trx-plugin-example/src/lib.rs index 5c661dd..b7e793d 100644 --- a/examples/trx-plugin-example/src/lib.rs +++ b/examples/trx-plugin-example/src/lib.rs @@ -15,7 +15,7 @@ use trx_frontend::{register_frontend, FrontendSpawner}; const BACKEND_NAME: &str = "example"; const FRONTEND_NAME: &str = "example-frontend"; -/// Entry point called by trx-bin when the plugin is loaded. +/// Entry point called by trx-server/trx-client when the plugin is loaded. #[no_mangle] pub extern "C" fn trx_register() { register_backend(BACKEND_NAME, example_backend_factory);