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

Issue #177: Add a baseline for Rust path resolution bindings #270

Merged
merged 79 commits into from Jul 26, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
ea314f3
add route map extension
nramos0 Jul 9, 2022
f58e09d
Merge branch 'starlite-api:main' into main
nramos0 Jul 9, 2022
c7822dc
change maturin to dev dependency
nramos0 Jul 12, 2022
1197452
rust ext: make Node::is_asgi default to false
nramos0 Jul 12, 2022
2331fe0
rust ext: remove unused dependency
nramos0 Jul 12, 2022
604789c
Build rust project with poetry
Dr-Emann Jul 11, 2022
db80df0
Move cargo stuff entirely within the extensions/rust dir
Dr-Emann Jul 11, 2022
63b13ae
Move rust extension out of starlite folder
Dr-Emann Jul 11, 2022
04bf11a
Correct import
Dr-Emann Jul 12, 2022
39dc7c2
Include rust source in sdist build
Dr-Emann Jul 11, 2022
05ad9c2
Working extension poetry build
Dr-Emann Jul 12, 2022
9cf5e43
Rename build.py
Dr-Emann Jul 12, 2022
c0965d9
Ignore build directory
Dr-Emann Jul 12, 2022
63929e6
Merge pull request #1 from Dr-Emann/build_with_poetry
nramos0 Jul 14, 2022
2294782
fix .gitignore order
nramos0 Jul 14, 2022
a6cde44
rust ext: refactor and rename route map module; added resolve_asgi_app()
nramos0 Jul 14, 2022
fa8094e
reinstall lock file
nramos0 Jul 14, 2022
9a41038
rust ext: remove some uses of `Python::acquire_gil()`
nramos0 Jul 14, 2022
939ac97
rust ext: don't return `PyResult` for infallible operations
nramos0 Jul 14, 2022
2db832c
rust ext: hide plain route methods from python interface
nramos0 Jul 15, 2022
f9d5a86
rust ext: add route collection parameter to `add_routes`
nramos0 Jul 15, 2022
569f38e
rust ext: use `IntoPy` trait method for `Node` instead of `as_pydict`
nramos0 Jul 15, 2022
fcfe93c
rust ext: refactor parameters for `configure_route_map_node`
nramos0 Jul 15, 2022
7f68080
rust ext: remove outdated comment
nramos0 Jul 15, 2022
45f3892
rust_ext: change uses of `cur` to `cur_node`
nramos0 Jul 15, 2022
81ad74f
rust ext: fix typo in route map comments
nramos0 Jul 20, 2022
caaeeda
rust ext: downgrade add_node_to_route_map return value to shared ref
nramos0 Jul 20, 2022
3adc2f9
rust_ext: port build_route_middleware_stack into extension util, remo…
nramos0 Jul 20, 2022
992bf94
rust ext: add minimal test
nramos0 Jul 20, 2022
36dddb5
Enhancement: Brotli compression middleware (#252)
cofin Jul 9, 2022
47dbea2
1.5.4
Goldziher Jul 10, 2022
30d9c22
updated pyproject.toml to exclude lines form coverage report
Goldziher Jul 11, 2022
462575a
Add tests for `Starlite.construct_route_map`
danesolberg Jul 12, 2022
ff81b79
Address flake8 validation rules
danesolberg Jul 12, 2022
4201eca
Removes `uuid4()` from within parametrized test cases.
peterschutt Jul 12, 2022
4dd7b59
Addresses cognitive complexity of `DTOFactory.__call__()` by breaking…
peterschutt Jul 13, 2022
4a8988c
updated dependencies
Goldziher Jul 13, 2022
3e7ea32
Issue 187 layered parameters (#261)
Goldziher Jul 13, 2022
44843e3
1.6.0
Goldziher Jul 13, 2022
be75724
1.6.1
Goldziher Jul 15, 2022
92aee7f
Fix route-map path existence test logic (#275) (#277)
danesolberg Jul 14, 2022
31fa0b4
added after_response (#279)
Goldziher Jul 15, 2022
be4c316
Issue 188: resolve exceptions swallowing args (#281)
Goldziher Jul 16, 2022
c798906
1.6.2
Goldziher Jul 18, 2022
2473e54
chore: updated maintainer list (#285)
cofin Jul 18, 2022
d5db4bd
docs: add cofin as a contributor for maintenance (#286)
allcontributors[bot] Jul 18, 2022
bb7d80e
Issue #255: allow single element query param in sequence types (#262)
josepdaniel Jul 19, 2022
aac69cd
docs: add josepdaniel as a contributor for code (#290)
allcontributors[bot] Jul 19, 2022
d0998ad
Updates instructions to install `testing` extra.
peterschutt Jul 20, 2022
a2d4ec6
LifecycleHook improvements.
peterschutt Jul 16, 2022
e976a4d
Enhancement: Tortoise-ORM Plugin (#283)
Goldziher Jul 21, 2022
b0a507e
1.7.0
Goldziher Jul 21, 2022
24809a8
Split `openapi.create_paramter_for_handler` into several methods to r…
185504a9 Jul 21, 2022
9fc0ec8
Adds `exceptions.utils.create_exception_response()`.
peterschutt Jul 21, 2022
32406ca
Supress warning generated from Tortoise ORM DTO test case.
peterschutt Jul 21, 2022
028e7e3
docs: update README.md [skip ci]
allcontributors[bot] Jul 21, 2022
ca59155
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Jul 21, 2022
27c0f3a
Fixes `!!! important` block and adds `<!-- prettier-ignore -->`.
peterschutt Jul 22, 2022
3e62566
`orjson` use in `WebSocket.{receive,send}_json()`
peterschutt Jul 22, 2022
cc97d85
Support for SwaggerUI (#302) (#303)
Goldziher Jul 23, 2022
1d3991b
1.7.1
Goldziher Jul 23, 2022
9395a22
Allow Partial to annotate fields of nested classes (#288)
Harry-Lees Jul 23, 2022
52f8c61
docs: add Harry-Lees as a contributor for code, doc (#305)
allcontributors[bot] Jul 23, 2022
937e857
update docs
Goldziher Jul 26, 2022
24996dc
Tidy grammar in comment.
peterschutt Jul 23, 2022
e2a3d83
`OpenAPIConfig.use_handler_docstrings`
peterschutt Jul 23, 2022
0f45b57
Adds detail to exception raised during signature model creation.
peterschutt Jul 24, 2022
123501f
1.7.2
peterschutt Jul 24, 2022
92e8fc5
add route map extension
nramos0 Jul 9, 2022
30d11f5
Build rust project with poetry
Dr-Emann Jul 11, 2022
5333da2
Move cargo stuff entirely within the extensions/rust dir
Dr-Emann Jul 11, 2022
cb2f68e
Correct import
Dr-Emann Jul 12, 2022
51a3bbd
Ignore build directory
Dr-Emann Jul 12, 2022
a84e83f
fix .gitignore order
nramos0 Jul 14, 2022
76b64ae
rust ext: refactor and rename route map module; added resolve_asgi_app()
nramos0 Jul 14, 2022
87d1afc
reinstall lock file
nramos0 Jul 14, 2022
4e52b45
fix some issues caused when rebasing
nramos0 Jul 26, 2022
2afccad
Merge branch 'main' into rust-ext
nramos0 Jul 26, 2022
67afa00
Merge pull request #2 from nramos0/rust-ext
nramos0 Jul 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -11,6 +11,7 @@ dist/
node_modules/
results/
site/
target/

# files
*.iml
Expand Down
256 changes: 256 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions Cargo.toml
@@ -0,0 +1,13 @@
[package]
name = "rust_backend"
version = "0.1.0"
edition = "2021"

[lib]
name = "rust_backend"
crate-type = ["cdylib"]
path = "./starlite/extensions/rust/lib.rs"

[dependencies]
pyo3 = { version = "0.16.5", features = ["extension-module"] }
matchit = "0.6.0"
4 changes: 4 additions & 0 deletions build.py
@@ -0,0 +1,4 @@


def build():
Goldziher marked this conversation as resolved.
Show resolved Hide resolved
pass
33 changes: 31 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pyproject.toml
Expand Up @@ -42,6 +42,7 @@ pyyaml = "*"
starlette = "*"
typing-extensions = "*"
requests = { version = "*", optional = true }
maturin = "^0.12.20"
nramos0 marked this conversation as resolved.
Show resolved Hide resolved

[tool.poetry.dev-dependencies]
hypothesis = { extras = ["cli"], version = "*" }
Expand All @@ -61,6 +62,10 @@ requests = "*"
[tool.poetry.extras]
testing = ["requests"]

# [tool.poetry.build]
# generate-setup-file = false
# script = "build.py"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
Expand Down