Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Axum (rust) #138

Closed
hahwul opened this issue Oct 24, 2023 · 1 comment
Closed

Add Axum (rust) #138

hahwul opened this issue Oct 24, 2023 · 1 comment
Assignees
Labels
🔬 analyzer Issue for Analyzer 🔎 detector Issue for Detector 💊 spec Issue for test codes
Milestone

Comments

@hahwul
Copy link
Member

hahwul commented Oct 24, 2023

https://github.com/tokio-rs/axum

async fn main() {
    // initialize tracing
    tracing_subscriber::fmt::init();

    // build our application with a route
    let app = Router::new()
        // `GET /` goes to `root`
        .route("/", get(root))
        // `POST /users` goes to `create_user`
        .route("/users", post(create_user));

    // 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();
}
@hahwul hahwul added 🔎 detector Issue for Detector 🔬 analyzer Issue for Analyzer 💊 spec Issue for test codes labels Oct 24, 2023
@hahwul hahwul self-assigned this Oct 24, 2023
hahwul added a commit that referenced this issue Oct 24, 2023
hahwul added a commit that referenced this issue Oct 24, 2023
hahwul added a commit that referenced this issue Oct 24, 2023
hahwul added a commit that referenced this issue Oct 24, 2023
hahwul added a commit that referenced this issue Oct 24, 2023
@hahwul
Copy link
Member Author

hahwul commented Oct 24, 2023

  • Path, Methods

@hahwul hahwul added this to the v0.10.0 milestone Oct 24, 2023
@hahwul hahwul closed this as completed Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔬 analyzer Issue for Analyzer 🔎 detector Issue for Detector 💊 spec Issue for test codes
Projects
None yet
Development

No branches or pull requests

1 participant