Skip to content

Commit b3e8f45

Browse files
ivanitskiydekobon
andcommittedApr 18, 2023
!misc: project refactor and new module structure
New crates: - nginx-sys - is a separate crate for nginx bindings - ngx - crate allows to use a higher-level abstractions to build modules in rust - examples - a number of examples how to develop nginx dynamic modules with Rust ngx v0.3.0-beta now has more rust idiomatic code and allows to build modules completely in rust without any C code Co-authored-by: Matthew Yacobucci <[email protected]> Elijah Zupancic <[email protected]>
1 parent d2c0b3a commit b3e8f45

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+5378
-1817
lines changed
 

‎.cargo/audit.toml‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# audit config file
2+
#
3+
# It may be located in the user home (`~/.cargo/audit.toml`) or in the project
4+
# root (`.cargo/audit.toml`).
5+
#
6+
# All of the options which can be passed via CLI arguments can also be
7+
# permanently specified in this file.
8+
# It may be located in the user home (`~/.cargo/audit.toml`) or in the project
9+
# root (`.cargo/audit.toml`).
10+
11+
[advisories]
12+
ignore = ["RUSTSEC-2020-0071"]
13+
14+
# # Advisory Database Configuration
15+
# [database]
16+
# path = "~/.cargo/advisory-db" # Path where advisory git repo will be cloned
17+
# url = "https://github.com/RustSec/advisory-db.git" # URL to git repo
18+
# fetch = true # Perform a `git fetch` before auditing (default: true)
19+
# stale = false # Allow stale advisory DB (i.e. no commits for 90 days, default: false)
20+
21+
# # Output Configuration
22+
# [output]
23+
# deny = ["unmaintained"] # exit on error if unmaintained dependencies are found
24+
# format = "terminal" # "terminal" (human readable report) or "json"
25+
# quiet = false # Only print information on error
26+
# show_tree = true # Show inverse dependency trees along with advisories (default: true)
27+
28+
# # Target Configuration
29+
# [target]
30+
# arch = "x86_64" # Ignore advisories for CPU architectures other than this one
31+
# os = "linux" # Ignore advisories for operating systems other than this one
32+
33+
# [yanked]
34+
# enabled = true # Warn for yanked crates in Cargo.lock (default: true)
35+
# update_index = true # Auto-update the crates.io index (default: true)

‎.cargo/config.toml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#
2+
# https://stackoverflow.com/questions/28124221/error-linking-with-cc-failed-exit-code-1
3+
#
4+
[target.x86_64-apple-darwin]
5+
rustflags = [
6+
"-C", "link-arg=-undefined",
7+
"-C", "link-arg=dynamic_lookup",
8+
]

‎.dockerignore‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
**/.idea
2+
.cargo
3+
.dockerignore
4+
.fossa.yml
5+
.git
6+
.github
7+
CHANGELOG.md
8+
CODE_OF_CONDUCT.md
9+
CONTRIBUTING.md
10+
Containerfile.debian
11+
Dockerfile
12+
GNUmakefile
13+
LICENSE.txt
14+
README.md
15+
SECURITY.md
16+
build
17+
18+
.vscode/**
19+
20+
**/target
21+
target
22+
23+
.cache/
24+
.nginx/

‎.fossa.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 3
2+
3+
project:
4+
id: github.com/nginxinc/ngx-rust
5+
name: ngx-rust
6+
url: github.com/nginxinc/ngx-rust
7+
8+
paths:
9+
exclude:
10+
- ./cache
11+
- ./nginx

0 commit comments

Comments
 (0)