-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEAT]: additional functions exposed
* added `&mut headers_out` getter * added `&mut conf_main` getter * exposed additional HTTP codes * added basic headers and body handling
- Loading branch information
Mateusz Matejuk
committed
Jan 30, 2024
1 parent
99508b8
commit 9ff8fd4
Showing
6 changed files
with
124 additions
and
53 deletions.
There are no files selected for viewing
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,9 +1,7 @@ | ||
[workspace] | ||
resolver = "2" | ||
resolver = "2" | ||
|
||
members = [ | ||
"examples/simple" | ||
] | ||
members = [ "examples/simple" ] | ||
|
||
[profile.release] | ||
debug = true | ||
debug = true |
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,16 +1,15 @@ | ||
[package] | ||
name = "simple" | ||
version = "0.1.0" | ||
edition = "2021" | ||
edition = "2021" | ||
name = "simple" | ||
version = "0.1.0" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[lib] | ||
crate-type = ["staticlib"] | ||
|
||
crate-type = [ "staticlib" ] | ||
|
||
|
||
[dependencies] | ||
anyhow = "1.0.71" | ||
nginx_derive = { path = "../../nginx_derive" } | ||
nginx_module = { path = "../../nginx_module" } | ||
anyhow = "1.0.71" | ||
nginx_derive = { path = "../../nginx_derive" } | ||
nginx_module = { path = "../../nginx_module" } |
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,20 +1,20 @@ | ||
[package] | ||
name = "nginx_derive" | ||
version = "0.1.1" | ||
edition = "2021" | ||
authors = ["Gabriel Oprisan <gabriel.oprisan@gcore.com>"] | ||
description = "Helper crate for nginx-rust" | ||
homepage = "https://github.com/g-Core/nginx-rust" | ||
repository = "https://github.com/g-Core/nginx-rust" | ||
readme = "README.md" | ||
license = "Apache-2.0" | ||
authors = [ "Gabriel Oprisan <gabriel.oprisan@gcore.com>" ] | ||
description = "Helper crate for nginx-rust" | ||
edition = "2021" | ||
homepage = "https://github.com/g-Core/nginx-rust" | ||
license = "Apache-2.0" | ||
name = "nginx_derive" | ||
readme = "README.md" | ||
repository = "https://github.com/g-Core/nginx-rust" | ||
version = "0.1.1" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[lib] | ||
proc-macro = true | ||
proc-macro = true | ||
|
||
[dependencies] | ||
syn = "2.0.18" | ||
quote = "1.0.28" | ||
proc-macro2 = "1.0.59" | ||
proc-macro2 = { version = "1.0.59" } | ||
quote = { version = "1.0.28" } | ||
syn = { version = "2.0.18" } |
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,22 +1,22 @@ | ||
[package] | ||
name = "nginx_module" | ||
version = "0.1.4" | ||
edition = "2021" | ||
build = "build.rs" | ||
authors = ["Gabriel Oprisan <gabriel.oprisan@gcore.com>"] | ||
description = "Rust bindings for building Nginx modules" | ||
homepage = "https://github.com/g-Core/nginx-rust" | ||
repository = "https://github.com/g-Core/nginx-rust" | ||
readme = "README.md" | ||
license = "Apache-2.0" | ||
authors = [ "Gabriel Oprisan <gabriel.oprisan@gcore.com>" ] | ||
build = "build.rs" | ||
description = "Rust bindings for building Nginx modules" | ||
edition = "2021" | ||
homepage = "https://github.com/g-Core/nginx-rust" | ||
license = "Apache-2.0" | ||
name = "nginx_module" | ||
readme = "README.md" | ||
repository = "https://github.com/g-Core/nginx-rust" | ||
version = "0.1.4" | ||
|
||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[build-dependencies] | ||
bindgen = "0.66.1" | ||
bindgen = { version = "0.66.1" } | ||
|
||
[dependencies] | ||
anyhow = "1.0.71" | ||
bitflags = "2.3.1" | ||
libc = "0.2.144" | ||
anyhow = { version = "1.0.71" } | ||
bitflags = { version = "2.3.1" } | ||
libc = { version = "0.2.144" } |
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
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