add matrix-sdk

This commit is contained in:
James Walker 2022-04-26 21:10:20 -04:00
parent 7c3a7572fc
commit 5fbb4cba3d
Signed by: walkah
GPG Key ID: 3C127179D6086E93
5 changed files with 2531 additions and 13 deletions

2506
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -6,3 +6,5 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
matrix-sdk = "0.4.1"
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }

24
flake.lock generated
View File

@ -5,11 +5,11 @@
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1639947939,
"narHash": "sha256-pGsM8haJadVP80GFq4xhnSpNitYNQpaXk4cnA796Cso=",
"lastModified": 1649096192,
"narHash": "sha256-7O8e+eZEYeU+ET98u/zW5epuoN/xYx9G+CIh4DjZVzY=",
"owner": "nix-community",
"repo": "naersk",
"rev": "2fc8ce9d3c025d59fee349c1f80be9785049d653",
"rev": "d626f73332a8f587b613b0afe7293dd0777be07d",
"type": "github"
},
"original": {
@ -20,11 +20,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1648097358,
"narHash": "sha256-GMoTKP/po2Nbkh1tvPvP8Ww6NyFW8FFst1Z3nfzffZc=",
"lastModified": 1649961138,
"narHash": "sha256-8ZCPrazs+qd2V8Elw84lIWuk0kKfVQ8Ei/19gahURhM=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "4d60081494259c0785f7e228518fee74e0792c1b",
"rev": "d08394e7cd5c7431a1e8f53b7f581e74ee909548",
"type": "github"
},
"original": {
@ -34,11 +34,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1648097358,
"narHash": "sha256-GMoTKP/po2Nbkh1tvPvP8Ww6NyFW8FFst1Z3nfzffZc=",
"lastModified": 1649961138,
"narHash": "sha256-8ZCPrazs+qd2V8Elw84lIWuk0kKfVQ8Ei/19gahURhM=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "4d60081494259c0785f7e228518fee74e0792c1b",
"rev": "d08394e7cd5c7431a1e8f53b7f581e74ee909548",
"type": "github"
},
"original": {
@ -57,11 +57,11 @@
},
"utils": {
"locked": {
"lastModified": 1648297722,
"narHash": "sha256-W+qlPsiZd8F3XkzXOzAoR+mpFqzm3ekQkJNa+PIh1BQ=",
"lastModified": 1649676176,
"narHash": "sha256-OWKJratjt2RW151VUlJPRALb7OU2S5s+f0vLj4o1bHM=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "0f8662f1319ad6abf89b3380dd2722369fc51ade",
"rev": "a4b154ebbdc88c8498a5c7b01589addc9e9cb678",
"type": "github"
},
"original": {

View File

@ -16,6 +16,7 @@
packages.zat = naersk-lib.buildPackage {
pname = "zat";
root = ./.;
buildInputs = with pkgs; [ cmake libiconv ];
};
defaultPackage = packages.zat;

View File

@ -1,3 +1,12 @@
fn main() {
use matrix_sdk::{
// config::SyncSettings,
room::Room,
ruma::events::room::message::{MessageType, TextMessageEventContent},
Client,
};
use std::env;
#[tokio::main]
async fn main() {
println!("Hello, world!");
}