Update Cargo.toml to v0.0.11-alpha.1 (#346)
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -22,8 +22,8 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: true
|
||||
- name: Install Rust (1.70 w/ clippy)
|
||||
uses: dtolnay/rust-toolchain@1.70
|
||||
- name: Install Rust (1.74 w/ clippy)
|
||||
uses: dtolnay/rust-toolchain@1.74
|
||||
with:
|
||||
components: clippy
|
||||
- name: Install Rust (nightly w/ rustfmt)
|
||||
|
||||
1334
Cargo.lock
generated
1334
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "iamb"
|
||||
version = "0.0.10"
|
||||
version = "0.0.11-alpha.1"
|
||||
edition = "2018"
|
||||
authors = ["Ulyssa <git@ulyssa.dev>"]
|
||||
repository = "https://github.com/ulyssa/iamb"
|
||||
@@ -11,7 +11,7 @@ license = "Apache-2.0"
|
||||
exclude = [".github", "CONTRIBUTING.md"]
|
||||
keywords = ["matrix", "chat", "tui", "vim"]
|
||||
categories = ["command-line-utilities"]
|
||||
rust-version = "1.70"
|
||||
rust-version = "1.74"
|
||||
build = "build.rs"
|
||||
|
||||
[features]
|
||||
@@ -46,7 +46,7 @@ nom = "7.0.0"
|
||||
open = "3.2.0"
|
||||
rand = "0.8.5"
|
||||
ratatui = "0.26"
|
||||
ratatui-image = { version = "1.0.0", features = ["serde"] }
|
||||
ratatui-image = { version = "=1.0.0", features = ["serde"] }
|
||||
regex = "^1.5"
|
||||
rpassword = "^7.2"
|
||||
serde = "^1.0"
|
||||
@@ -70,7 +70,7 @@ default-features = false
|
||||
features = ["shortcodes"]
|
||||
|
||||
[dependencies.notify-rust]
|
||||
version = "4.10.0"
|
||||
version = "~4.10.0"
|
||||
default-features = false
|
||||
features = ["zbus", "serde"]
|
||||
optional = true
|
||||
|
||||
@@ -53,7 +53,7 @@ user_id = "@user:example.com"
|
||||
|
||||
## Installation (via `crates.io`)
|
||||
|
||||
Install Rust (1.70.0 or above) and Cargo, and then run:
|
||||
Install Rust (1.74.0 or above) and Cargo, and then run:
|
||||
|
||||
```
|
||||
cargo install --locked iamb
|
||||
|
||||
@@ -9,7 +9,7 @@ use std::fmt::{self, Display};
|
||||
use std::hash::{Hash, Hasher};
|
||||
use std::ops::{Deref, DerefMut};
|
||||
|
||||
use chrono::{DateTime, Local as LocalTz, NaiveDateTime, TimeZone};
|
||||
use chrono::{DateTime, Local as LocalTz};
|
||||
use humansize::{format_size, DECIMAL};
|
||||
use serde_json::json;
|
||||
use unicode_width::UnicodeWidthStr;
|
||||
@@ -180,9 +180,8 @@ fn placeholder_frame(
|
||||
#[inline]
|
||||
fn millis_to_datetime(ms: UInt) -> DateTime<LocalTz> {
|
||||
let time = i64::from(ms) / 1000;
|
||||
let time = NaiveDateTime::from_timestamp_opt(time, 0).unwrap_or_default();
|
||||
|
||||
LocalTz.from_utc_datetime(&time)
|
||||
let time = DateTime::from_timestamp(time, 0).unwrap_or_default();
|
||||
time.into()
|
||||
}
|
||||
|
||||
#[derive(thiserror::Error, Debug)]
|
||||
|
||||
Reference in New Issue
Block a user