-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
59 additions
and
47 deletions.
There are no files selected for viewing
Submodule awesome
updated
3 files
+5 −1 | .gitignore | |
+6 −0 | lang/shell/copyright.sh | |
+ − | note/gerber-cn.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,6 @@ opt-level = 3 | |
|
||
[workspace] | ||
members = [ | ||
"cdylib", | ||
"mobile", "rfv", | ||
"wasm" | ||
] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[package] | ||
name = "mobile" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[target.'cfg(target_os="android")'.dependencies] | ||
android_logger = "0.14.1" | ||
|
||
[lib] | ||
name = "mobile" | ||
crate-type = ["lib", "staticlib", "cdylib"] | ||
|
||
[dependencies] | ||
libc = "0.2" | ||
axum = "0.7.9" | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = "1.0.73" | ||
futures = "0.3.17" | ||
tracing = "0.1.29" | ||
tracing-subscriber = "0.3" | ||
tokio = { version = "1.19", features = ["full"] } | ||
slog = "2.7" | ||
slog-stdlog = "4.1" | ||
slog-scope = "4.4" | ||
slog-term = "2.8" | ||
slog-async = "2.7" | ||
lazy_static = "1.4" | ||
once_cell = "1.9" | ||
log = "0.4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
server/rust/cdylib/src/main.rs → server/rust/mobile/src/main.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use rust::export::start; | ||
use mobile::export::start; | ||
|
||
|
||
fn main() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use axum::{ | ||
routing::get, | ||
Router, | ||
}; | ||
|
||
#[tokio::main] | ||
async fn main() { | ||
// build our application with a single route | ||
let app = Router::new().route("/", get(|| async { "Hello, World!" })); | ||
|
||
// run our app with hyper, listening globally on port 3000 | ||
let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap(); | ||
axum::serve(listener, app).await.unwrap(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule cherry
updated
29 files
+6 −0 | _example/protobuf/user/user.enumext.pb.go | |
+6 −0 | _example/protobuf/user/user.gqlgen.pb.go | |
+6 −0 | _example/protobuf/user/user.pb.go | |
+6 −0 | _example/protobuf/user/user.pb.gw.go | |
+6 −0 | _example/protobuf/user/user.validator.pb.go | |
+6 −0 | _example/protobuf/user/user_grpc.pb.go | |
+6 −0 | _example/user/api/gin.go | |
+6 −0 | _example/user/api/grpc.go | |
+6 −0 | _example/user/main.go | |
+6 −0 | _example/user/middle/http.go | |
+6 −0 | _example/user/service/service.go | |
+6 −0 | _example/user/service/var.go | |
+6 −0 | access_log.go | |
+6 −0 | gateway/gin/json.go | |
+6 −0 | gateway/gin/oauth.go | |
+6 −0 | gateway/gin/response.go | |
+6 −0 | gateway/runtime/json.go | |
+6 −0 | gateway/runtime/response.go | |
+5 −5 | go.mod | |
+10 −0 | go.sum | |
+6 −0 | handler_grpc.go | |
+6 −0 | handler_http.go | |
+6 −0 | oauth/oauth.go | |
+6 −0 | opentelemetry.go | |
+6 −0 | options.go | |
+6 −0 | prometheus.go | |
+6 −0 | run.go | |
+6 −0 | run_test.go | |
+6 −0 | server.go |
Submodule context
updated
12 files
+6 −0 | context.go | |
+6 −0 | fasthttpctx/fasthttp_context.go | |
+6 −0 | fiberctx/fiber_context.go | |
+6 −0 | ginctx/gin_context.go | |
+4 −4 | go.mod | |
+5 −0 | go.sum | |
+6 −0 | httpctx/http_context.go | |
+6 −0 | log.go | |
+6 −0 | reqctx/auth.go | |
+6 −0 | reqctx/device_info.go | |
+6 −0 | reqctx/request_context.go | |
+6 −0 | telemetry.go |
Submodule initialize
updated
62 files
Submodule pick
updated
23 files
+6 −0 | _example/fiber/main.go | |
+6 −0 | _example/fiber/middle/middle.go | |
+6 −0 | _example/fiber/service/auth.go | |
+6 −0 | _example/fiber/service/test.go | |
+6 −0 | _example/fiber/service/user.go | |
+6 −0 | _example/gin/main.go | |
+6 −0 | _example/gin/middle.go | |
+6 −0 | _example/gin/service.go | |
+6 −0 | api_info.go | |
+6 −0 | apidoc/doc.go | |
+6 −0 | apidoc/doc_markdown.go | |
+6 −0 | apidoc/doc_postman.go | |
+6 −0 | apidoc/doc_swagger.go | |
+6 −0 | fiber/apidoc.go | |
+6 −0 | fiber/fiber.go | |
+6 −0 | fiber/writer.go | |
+6 −0 | gin/gin.go | |
+5 −5 | go.mod | |
+7 −0 | go.sum | |
+6 −0 | handler.go | |
+6 −0 | log.go | |
+6 −0 | service.go | |
+6 −0 | writer.go |
Submodule protobuf
updated
39 files
Submodule utils
updated
21 files
+17 −0 | encoding/gerber/gerber.go | |
+1 −1 | encoding/gerber/gerber_test.go | |
+7 −0 | fs/fs_windows.go | |
+6 −7 | go.mod | |
+3 −22 | go.sum | |
+13 −0 | math/bits/bits.go | |
+0 −7 | net/http/fs/download.go | |
+5 −0 | net/http/fs/fs.go | |
+0 −0 | net/http/fs/upload/upload.go | |
+21 −0 | net/http/fs/webdav/webdav.go | |
+2 −2 | net/http/gin/middleware/log.go | |
+10 −10 | net/http/log/log.go | |
+2 −2 | structure/cache/gcache/arc.go | |
+19 −19 | structure/cache/gcache/cache.go | |
+24 −24 | structure/cache/gcache/lfu.go | |
+23 −23 | structure/cache/gcache/lru.go | |
+0 −15 | structure/cache/gcache/utils.go | |
+14 −14 | structure/cache/lru/lru.go | |
+1 −1 | structure/index/index.go | |
+667 −0 | structure/tree/trietree/trie.go | |
+42 −0 | structure/tree/trietree/trie_test.go |