mirror of
https://github.com/atuinsh/atuin.git
synced 2025-08-04 02:38:49 +00:00
chore: migrate to rust 2024 (#2635)
* chore: upgrade to 2024 edition * ugh unsafe * format * nixxxxxxxxxxx why
This commit is contained in:
parent
28d5ff83c2
commit
14ec768b45
93 changed files with 1035 additions and 777 deletions
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "atuin-server-postgres"
|
||||
edition = "2021"
|
||||
edition = "2024"
|
||||
description = "server postgres database library for atuin"
|
||||
|
||||
version = { workspace = true }
|
||||
|
|
|
@ -10,8 +10,8 @@ use atuin_server_database::{Database, DbError, DbResult};
|
|||
use futures_util::TryStreamExt;
|
||||
use metrics::counter;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use sqlx::postgres::PgPoolOptions;
|
||||
use sqlx::Row;
|
||||
use sqlx::postgres::PgPoolOptions;
|
||||
|
||||
use time::{OffsetDateTime, PrimitiveDateTime, UtcOffset};
|
||||
use tracing::{instrument, trace};
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use ::sqlx::{FromRow, Result};
|
||||
use atuin_common::record::{EncryptedData, Host, Record};
|
||||
use atuin_server_database::models::{History, Session, User};
|
||||
use sqlx::{postgres::PgRow, Row};
|
||||
use sqlx::{Row, postgres::PgRow};
|
||||
use time::PrimitiveDateTime;
|
||||
|
||||
pub struct DbUser(pub User);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue