chore(journaldriver): Migrate to Rust Edition 2021
Change-Id: I858738b6fc554060824bbb4e69d5ccd03789535d Reviewed-on: https://cl.tvl.fyi/c/depot/+/5309 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org> Autosubmit: tazjin <tazjin@tvl.su>
This commit is contained in:
parent
c075a2c541
commit
19a13e08a8
2 changed files with 6 additions and 20 deletions
|
@ -3,6 +3,7 @@ name = "journaldriver"
|
|||
version = "1.1.0"
|
||||
authors = ["Vincent Ambo <mail@tazj.in>"]
|
||||
license = "GPL-3.0-or-later"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0"
|
||||
|
|
|
@ -31,28 +31,13 @@
|
|||
//! `GOOGLE_APPLICATION_CREDENTIALS`, `GOOGLE_CLOUD_PROJECT` and
|
||||
//! `LOG_NAME` environment variables.
|
||||
|
||||
#[macro_use]
|
||||
extern crate anyhow;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
#[macro_use]
|
||||
extern crate serde_json;
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
|
||||
extern crate chrono;
|
||||
extern crate env_logger;
|
||||
extern crate medallion;
|
||||
extern crate serde;
|
||||
extern crate systemd;
|
||||
extern crate ureq;
|
||||
|
||||
use anyhow::{Context, Result};
|
||||
use anyhow::{bail, format_err, Context, Result};
|
||||
use chrono::offset::LocalResult;
|
||||
use chrono::prelude::{DateTime, TimeZone, Utc};
|
||||
use serde_json::{from_str, Value};
|
||||
use lazy_static::lazy_static;
|
||||
use log::{debug, error, info, trace};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::{from_str, json, Value};
|
||||
use std::fs::{self, rename, File};
|
||||
use std::io::{self, ErrorKind, Read, Write};
|
||||
use std::path::PathBuf;
|
||||
|
|
Loading…
Reference in a new issue