diff --git a/Cargo.toml b/Cargo.toml index 460e454..c50ecec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,15 +6,14 @@ members = [ "auth/redis-session", "auth/simple-auth-server", "basics/basics", - "basics/error_handling", + "basics/error-handling", "basics/hello-world", - "basics/json-validation", "basics/nested-routing", "basics/state", - "basics/static_index", + "basics/static-files", "basics/todo", "cors/backend", - "data_factory", + "data-factory", # example uses incompatible libsqlite-sys to other examples # "databases/diesel", "databases/mongodb", @@ -29,13 +28,14 @@ members = [ "graphql/juniper-advanced", "graphql/juniper", "http-proxy", - "https-tls/awc_https", + "https-tls/awc-https", "https-tls/openssl-auto-le", "https-tls/openssl", "https-tls/rustls-client-cert", "https-tls/rustls", - "json/json_decode_error", - "json/json_error", + "json/json-decode-error", + "json/json-error", + "json/json-validation", "json/json", "json/jsonrpc", "middleware/middleware-ext-mut", diff --git a/basics/error_handling/Cargo.toml b/basics/error-handling/Cargo.toml similarity index 100% rename from basics/error_handling/Cargo.toml rename to basics/error-handling/Cargo.toml diff --git a/basics/error_handling/README.md b/basics/error-handling/README.md similarity index 100% rename from basics/error_handling/README.md rename to basics/error-handling/README.md diff --git a/basics/error_handling/src/main.rs b/basics/error-handling/src/main.rs similarity index 100% rename from basics/error_handling/src/main.rs rename to basics/error-handling/src/main.rs diff --git a/basics/static_index/Cargo.toml b/basics/static-files/Cargo.toml similarity index 100% rename from basics/static_index/Cargo.toml rename to basics/static-files/Cargo.toml diff --git a/basics/static_index/README.md b/basics/static-files/README.md similarity index 100% rename from basics/static_index/README.md rename to basics/static-files/README.md diff --git a/basics/static_index/src/main.rs b/basics/static-files/src/main.rs similarity index 100% rename from basics/static_index/src/main.rs rename to basics/static-files/src/main.rs diff --git a/basics/static_index/static/images/logo.png b/basics/static-files/static/images/logo.png similarity index 100% rename from basics/static_index/static/images/logo.png rename to basics/static-files/static/images/logo.png diff --git a/basics/static_index/static/root/css/example.css b/basics/static-files/static/root/css/example.css similarity index 100% rename from basics/static_index/static/root/css/example.css rename to basics/static-files/static/root/css/example.css diff --git a/basics/static_index/static/root/favicon.ico b/basics/static-files/static/root/favicon.ico similarity index 100% rename from basics/static_index/static/root/favicon.ico rename to basics/static-files/static/root/favicon.ico diff --git a/basics/static_index/static/root/index.html b/basics/static-files/static/root/index.html similarity index 100% rename from basics/static_index/static/root/index.html rename to basics/static-files/static/root/index.html diff --git a/basics/static_index/static/root/js/example.js b/basics/static-files/static/root/js/example.js similarity index 100% rename from basics/static_index/static/root/js/example.js rename to basics/static-files/static/root/js/example.js diff --git a/data_factory/Cargo.toml b/data-factory/Cargo.toml similarity index 100% rename from data_factory/Cargo.toml rename to data-factory/Cargo.toml diff --git a/data_factory/README.md b/data-factory/README.md similarity index 100% rename from data_factory/README.md rename to data-factory/README.md diff --git a/data_factory/src/main.rs b/data-factory/src/main.rs similarity index 100% rename from data_factory/src/main.rs rename to data-factory/src/main.rs diff --git a/https-tls/awc_https/Cargo.toml b/https-tls/awc-https/Cargo.toml similarity index 100% rename from https-tls/awc_https/Cargo.toml rename to https-tls/awc-https/Cargo.toml diff --git a/https-tls/awc_https/README.md b/https-tls/awc-https/README.md similarity index 100% rename from https-tls/awc_https/README.md rename to https-tls/awc-https/README.md diff --git a/https-tls/awc_https/src/main.rs b/https-tls/awc-https/src/main.rs similarity index 100% rename from https-tls/awc_https/src/main.rs rename to https-tls/awc-https/src/main.rs diff --git a/json/json_decode_error/Cargo.toml b/json/json-decode-error/Cargo.toml similarity index 100% rename from json/json_decode_error/Cargo.toml rename to json/json-decode-error/Cargo.toml diff --git a/json/json_decode_error/README.md b/json/json-decode-error/README.md similarity index 100% rename from json/json_decode_error/README.md rename to json/json-decode-error/README.md diff --git a/json/json_decode_error/src/main.rs b/json/json-decode-error/src/main.rs similarity index 100% rename from json/json_decode_error/src/main.rs rename to json/json-decode-error/src/main.rs diff --git a/json/json_error/Cargo.toml b/json/json-error/Cargo.toml similarity index 100% rename from json/json_error/Cargo.toml rename to json/json-error/Cargo.toml diff --git a/json/json_error/src/main.rs b/json/json-error/src/main.rs similarity index 100% rename from json/json_error/src/main.rs rename to json/json-error/src/main.rs diff --git a/basics/json-validation/Cargo.toml b/json/json-validation/Cargo.toml similarity index 100% rename from basics/json-validation/Cargo.toml rename to json/json-validation/Cargo.toml diff --git a/basics/json-validation/README.md b/json/json-validation/README.md similarity index 100% rename from basics/json-validation/README.md rename to json/json-validation/README.md diff --git a/basics/json-validation/src/main.rs b/json/json-validation/src/main.rs similarity index 100% rename from basics/json-validation/src/main.rs rename to json/json-validation/src/main.rs diff --git a/protobuf/README.md b/protobuf/README.md index 5592e57..702ab03 100644 --- a/protobuf/README.md +++ b/protobuf/README.md @@ -5,7 +5,7 @@ ### Server ```shell -cd other/protobuf +cd protobuf cargo run ``` diff --git a/server-sent-events/README.md b/server-sent-events/README.md index e14d6f8..2e2164d 100644 --- a/server-sent-events/README.md +++ b/server-sent-events/README.md @@ -2,7 +2,7 @@ Example of server-sent events, aka `EventSource`, with actix web. ```sh -cd other/server-sent-events +cd server-sent-events cargo run ``` diff --git a/unix-socket/README.md b/unix-socket/README.md index 21abbe2..ea3ce3d 100644 --- a/unix-socket/README.md +++ b/unix-socket/README.md @@ -1,7 +1,7 @@ ## Unix domain socket example ```bash -cd other/unix-socket +cd unix-socket cargo run # in another shell