Cargo.toml: Rename the crate.

master
Damir Jelić 2020-02-21 17:01:34 +01:00
parent e957282cbb
commit d2141624d0
2 changed files with 7 additions and 7 deletions

View File

@ -1,13 +1,13 @@
[package] [package]
authors = ["Damir Jelić <poljar@termina.org.uk"] authors = ["Damir Jelić <poljar@termina.org.uk"]
description = "A high level Matrix client library." description = "A high level Matrix client-server library."
edition = "2018" edition = "2018"
homepage = "https://github.com/poljar/nio-rust" homepage = "https://github.com/matrix-org/matrix-rust-sdk"
keywords = ["matrix", "chat", "messaging", "ruma", "nio"] keywords = ["matrix", "chat", "messaging", "ruma", "nio"]
license = "MIT" license = "MIT"
name = "matrix-nio" name = "matrix-sdk"
readme = "README.md" readme = "README.md"
repository = "https://github.com/poljar/nio-rust" repository = "https://github.com/matrix-org/matrix-rust-sdk"
version = "0.1.0" version = "0.1.0"
[dependencies] [dependencies]

View File

@ -2,7 +2,7 @@ use std::sync::{Arc, RwLock};
use std::{env, process::exit}; use std::{env, process::exit};
use url::Url; use url::Url;
use matrix_nio::{ use matrix_sdk::{
self, self,
events::{ events::{
collections::all::RoomEvent, collections::all::RoomEvent,
@ -38,7 +38,7 @@ async fn login(
homeserver_url: String, homeserver_url: String,
username: String, username: String,
password: String, password: String,
) -> Result<(), matrix_nio::Error> { ) -> Result<(), matrix_sdk::Error> {
let client_config = AsyncClientConfig::new() let client_config = AsyncClientConfig::new()
.proxy("http://localhost:8080")? .proxy("http://localhost:8080")?
.disable_ssl_verification(); .disable_ssl_verification();
@ -54,7 +54,7 @@ async fn login(
} }
#[tokio::main] #[tokio::main]
async fn main() -> Result<(), matrix_nio::Error> { async fn main() -> Result<(), matrix_sdk::Error> {
let (homeserver_url, username, password) = let (homeserver_url, username, password) =
match (env::args().nth(1), env::args().nth(2), env::args().nth(3)) { match (env::args().nth(1), env::args().nth(2), env::args().nth(3)) {
(Some(a), Some(b), Some(c)) => (a, b, c), (Some(a), Some(b), Some(c)) => (a, b, c),