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
trait HasEndpoint { | |
type Endpoint: Endpoint; | |
} | |
trait Endpoint { | |
type Request: Default + ToString; | |
} | |
struct Foo; |
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
[root] | |
name = "ruma" | |
version = "0.1.0" | |
dependencies = [ | |
"argon2rs 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", | |
"base64 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", | |
"bodyparser 0.5.0 (git+https://github.com/jimmycuadra/body-parser?branch=serde-0.9)", | |
"chrono 0.2.25 (registry+https://github.com/rust-lang/crates.io-index)", | |
"clap 2.20.0 (registry+https://github.com/rust-lang/crates.io-index)", | |
"diesel 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)", |
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
pub trait Endpoint<RQ, RS, S> where RQ: BuildRequest, RS: BuildResponse<S> { | |
fn build_request() -> RQ; | |
fn build_response() -> RS; | |
fn info() -> Info; | |
} | |
pub struct Info { | |
pub description: &'static str, | |
pub name: &'static str, | |
pub rate_limited: bool, |
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
pub trait Endpoint { | |
type Request: Request; | |
type Response: Response; | |
fn info() -> Info; | |
} | |
pub struct Info { | |
pub description: &'static str, | |
pub name: &'static str, |
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
--- | |
kind: "Template" | |
apiVersion: "v1" | |
metadata: | |
name: "kibana" | |
objects: | |
- kind: "Namespace" | |
apiVersion: "v1" | |
metadata: | |
name: "kibana" |
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
As is: | |
error: expected expression, found `AnswerEvent` | |
--> src/api/r0/event_creation.rs:42:9 | |
| | |
42 | $name { | |
| ^^^^^ | |
---------- |
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
I'm hoping to release 0.1.0 by the end of the year | |
https://github.com/ruma/ruma/milestone/1 | |
In other words, no federation, only the most critical APIs implemented | |
when I get back to work on it next week, my next steps are to write some tests for the message sending API | |
and then to work on the state event creation APIs | |
once those are done, the logic for validating state events on creation will be in place, so finishing the create room API will be possible | |
the /sync API will be the final beast for 0.1.0 | |
with the join/invite APIs being thrown in there somewhere and likely somewhat easier than the others | |
the two big question marks in my mind right now are 1) a better approach to the equivalent of synapse's state groups 2) the architecture of /sync and how to make it performant |
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
$ rustup --verbose update nightly | |
verbose: read metadata version: '12' | |
verbose: updating existing install for 'nightly-x86_64-apple-darwin' | |
verbose: toolchain directory: '/Users/redacted/.multirust/toolchains/nightly-x86_64-apple-darwin' | |
info: syncing channel updates for 'nightly-x86_64-apple-darwin' | |
verbose: creating temp file: /Users/redacted/.multirust/tmp/x1jysmg0eexmb81g_file | |
verbose: downloading file from: 'https://static.rust-lang.org/dist/channel-rust-nightly.toml.sha256' | |
verbose: downloading with curl | |
verbose: deleted temp file: /Users/redacted/.multirust/tmp/x1jysmg0eexmb81g_file | |
verbose: toolchain is already up to date |
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
$ ./synctl start | |
Starting ... | |
2016-06-21 01:21:58,748 - synapse.python_dependencies - 107 - INFO - - Using 'bcrypt' version None from '/redacted/.pyenv/versions/synapse/lib/python2.7/site-packages/bcrypt/__init__.pyc' to satisfy 'py-bcrypt' | |
2016-06-21 01:21:58,749 - synapse.python_dependencies - 107 - INFO - - Using 'frozendict' version None from '/redacted/.pyenv/versions/synapse/lib/python2.7/site-packages/frozendict/__init__.pyc' to satisfy 'frozendict>=0.4' | |
2016-06-21 01:21:58,749 - synapse.python_dependencies - 107 - INFO - - Using 'OpenSSL' version '16.0.0' from '/redacted/.pyenv/versions/synapse/lib/python2.7/site-packages/OpenSSL/__init__.pyc' to satisfy 'pyopenssl>=0.14' | |
2016-06-21 01:21:58,749 - synapse.python_dependencies - 107 - INFO - - Using 'pydenticon' version None from '/redacted/.pyenv/versions/synapse/lib/python2.7/site-packages/pydenticon/__init__.pyc' to satisfy 'pydenticon' | |
2016-06-21 01:21:58,749 - synapse.python_dependencies - 107 - INFO - - Using 'pymacaroons' version '0.9.0' from '/r |
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
src/lib.rs:210:17: 210:36 error: mismatched types [E0308] | |
src/lib.rs:210 for (field_name, field) in &numbers_to_check { | |
^~~~~~~~~~~~~~~~~~~ | |
src/lib.rs:210:17: 210:36 help: run `rustc --explain E0308` to see a detailed explanation | |
src/lib.rs:210:17: 210:36 note: expected type `&(&str, std::option::Option<tests::PhoneNumber>)` | |
src/lib.rs:210:17: 210:36 note: found type `(_, _)` |