https://github.com/fasterspeeding/alluka-rust
A performant Rust implementation of Alluka DI
https://github.com/fasterspeeding/alluka-rust
Last synced: about 1 month ago
JSON representation
A performant Rust implementation of Alluka DI
- Host: GitHub
- URL: https://github.com/fasterspeeding/alluka-rust
- Owner: FasterSpeeding
- License: bsd-3-clause
- Created: 2022-07-02T13:27:14.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-02-03T21:30:09.000Z (4 months ago)
- Last Synced: 2025-02-03T22:28:33.315Z (4 months ago)
- Language: Rust
- Size: 342 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Alluka
A performant Rust implementation of Alluka DI.
# Usage
For more information on how to use Alluka as a whole see https://alluka.cursed.solutions/usage/
as this follows the same interface (`alluka_rust.Client` and `alluka_rust.BasicContext`
can be used like `alluka.Client` and `alluka.BasicContext`)If you want to patch the default Alluka implementation with this you can simply
set the `ALLUKA_RUST_PATCH` env variable to `"true"` before importing `alluka_rust`
or call `alluka_rust.patch_alluka()` before starting anything which uses Alluka.# Limitations
While this is a full Alluka implementation, it should be noted that (unlike
the pure Python implementation) this implementation only works with context
implementations which directly inherit from `alluka_rust.BasicContext` and won't
use any overriden behaviour for most of the python methods during the DI process.