summary refs log tree commit diff
path: root/rust/Cargo.toml (follow)
Commit message (Collapse)AuthorAgeFilesLines
* MSC4108 implementation (#17056)Quentin Gliech2024-04-251-0/+4
| | | | | | Co-authored-by: Hugh Nimmo-Smith <hughns@element.io> Co-authored-by: Hugh Nimmo-Smith <hughns@users.noreply.github.com> Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
* Helpers to transform Twisted requests to Rust http Requests/Responses (#17081)Quentin Gliech2024-04-181-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds functions to transform a Twisted request to the `http::Request`, and then to send back an `http::Response` through it. It also imports the SynapseError exception so that we can throw that from Rust code directly Example usage of this would be: ```rust use crate::http::{http_request_from_twisted, http_response_to_twisted, HeaderMapPyExt}; fn handler(twisted_request: &PyAny) -> PyResult<()> { let request = http_request_from_twisted(twisted_request)?; let ua: headers::UserAgent = request.headers().typed_get_required()?; if whatever { return Err((crate::errors::SynapseError::new( StatusCode::UNAUTHORIZED, "Whatever".to_owned "M_UNAUTHORIZED", None, None, ))); } let response = Response::new("hello".as_bytes()); http_response_to_twisted(twisted_request, response)?; Ok(()) } ```
* Bump minimum required Rust version to 1.66.0 (#17079)Quentin Gliech2024-04-171-1/+1
|
* Bump minimum Rust version to 1.65.0 (#16818)Erik Johnston2024-01-221-1/+1
| | | | | The ecosystem e.g. regex crate, have bumped up their MSRV to 1.65.0, which was released Nov 2022. In line with our policy, let's bump to match.
* Bump pyo3 (0.20), pythonize (0.20), pyo3-log (0.9) (#16673)V024602023-11-221-3/+3
| | | Signed-off-by: Kai A. Hiller <V02460@gmail.com>
* Bump pyo3 from 0.17.1 to 0.19.2 (#16162)V024602023-10-061-3/+3
| | | Signed-off-by: Kai A. Hiller <V02460@gmail.com>
* Use modern config for maturin. (#16394)Patrick Cloke2023-09-281-0/+2
| | | | | | | This allows maturin >= 0.15 to build the properly named shared library object. For now the old configuration is also kept to allow for older maturin installs to be used.
* Bump minimum supported Rust version to 1.61.0 (#16248)Erik Johnston2023-09-051-2/+7
|
* Bump minimum supported Rust version (#15768)Erik Johnston2023-06-121-1/+1
| | | | Important crates such as `log` and `regex` have bumped theirs to 1.60.0 as well.
* Update pyo3-log to v0.8.1 (#15043)V024602023-02-131-1/+1
| | | Signed-off-by: Kai A. Hiller <V02460@gmail.com>
* Make extension-module optional, but default. (#14965)Patrick Cloke2023-02-011-1/+5
|
* Make Dependabot only bump Rust deps in the lock file (#14434)Erik Johnston2022-11-141-6/+6
| | | This is to help downstream packagers.
* Bump blake2 from 0.10.4 to 0.10.5 (#14426)dependabot[bot]2022-11-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | * Bump blake2 from 0.10.4 to 0.10.5 Bumps [blake2](https://github.com/RustCrypto/hashes) from 0.10.4 to 0.10.5. - [Release notes](https://github.com/RustCrypto/hashes/releases) - [Commits](https://github.com/RustCrypto/hashes/compare/blake2-v0.10.4...blake2-v0.10.5) --- updated-dependencies: - dependency-name: blake2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Changelog Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
* Bump pyo3 from 0.17.2 to 0.17.3 (#14381)dependabot[bot]2022-11-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * Bump pyo3 from 0.17.2 to 0.17.3 Bumps [pyo3](https://github.com/pyo3/pyo3) from 0.17.2 to 0.17.3. - [Release notes](https://github.com/pyo3/pyo3/releases) - [Changelog](https://github.com/PyO3/pyo3/blob/main/CHANGELOG.md) - [Commits](https://github.com/pyo3/pyo3/compare/v0.17.2...v0.17.3) --- updated-dependencies: - dependency-name: pyo3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Changelog Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
* Bump regex from 1.6.0 to 1.7.0 (#14380)dependabot[bot]2022-11-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * Bump regex from 1.6.0 to 1.7.0 Bumps [regex](https://github.com/rust-lang/regex) from 1.6.0 to 1.7.0. - [Release notes](https://github.com/rust-lang/regex/releases) - [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/regex/compare/1.6.0...1.7.0) --- updated-dependencies: - dependency-name: regex dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Changelog Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
* Bump serde_json from 1.0.86 to 1.0.87 (#14279)dependabot[bot]2022-10-241-1/+1
|
* Bump anyhow from 1.0.65 to 1.0.66 (#14278)dependabot[bot]2022-10-241-1/+1
|
* Bump serde from 1.0.145 to 1.0.147 (#14277)dependabot[bot]2022-10-241-1/+1
|
* Implement push rule evaluation in Rust. (#13838)Erik Johnston2022-09-291-1/+3
|
* Merge branch 'release-v1.68' into developErik Johnston2022-09-231-1/+1
|\
| * Lower minimum rustc version to 1.58.1 (#13857)Erik Johnston2022-09-211-1/+1
| |
* | Port the push rule classes to Rust. (#13768)Erik Johnston2022-09-201-1/+9
|/
* Check if Rust lib needs rebuilding. (#13759)Erik Johnston2022-09-121-0/+4
| | | This protects against the common mistake of failing to remember to rebuild Rust code after making changes.
* Add a stub Rust crate (#12595)Erik Johnston2022-09-061-0/+21