build optimizations, cargo optimizations
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -5,3 +5,5 @@ CLAUDE.md
|
|||||||
node_modules/
|
node_modules/
|
||||||
dist/
|
dist/
|
||||||
*.log
|
*.log
|
||||||
|
|
||||||
|
Cargo.lock
|
||||||
|
|||||||
14
Cargo.toml
Normal file
14
Cargo.toml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
[workspace]
|
||||||
|
members = ["backend"]
|
||||||
|
resolver = "2"
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
opt-level = 3
|
||||||
|
lto = "fat"
|
||||||
|
codegen-units = 1
|
||||||
|
strip = true
|
||||||
|
panic = "abort"
|
||||||
|
|
||||||
|
[profile.release.package."*"]
|
||||||
|
opt-level = 3
|
||||||
|
codegen-units = 16
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
use axum::{
|
use axum::{
|
||||||
extract::State,
|
|
||||||
http::StatusCode,
|
http::StatusCode,
|
||||||
Json,
|
Json,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ use axum::{
|
|||||||
};
|
};
|
||||||
use sea_orm::{prelude::Decimal, DatabaseConnection};
|
use sea_orm::{prelude::Decimal, DatabaseConnection};
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
use serde_json::json;
|
|
||||||
use utoipa::ToSchema;
|
use utoipa::ToSchema;
|
||||||
|
|
||||||
use crate::models::category::Model as CategoryModel;
|
use crate::models::category::Model as CategoryModel;
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ use axum::{
|
|||||||
};
|
};
|
||||||
use sea_orm::{prelude::Decimal, DatabaseConnection};
|
use sea_orm::{prelude::Decimal, DatabaseConnection};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use serde_json::json;
|
|
||||||
use utoipa::ToSchema;
|
use utoipa::ToSchema;
|
||||||
|
|
||||||
use crate::models::expense::Model as ExpenseModel;
|
use crate::models::expense::Model as ExpenseModel;
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ use axum::{
|
|||||||
};
|
};
|
||||||
use sea_orm::DatabaseConnection;
|
use sea_orm::DatabaseConnection;
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
use serde_json::json;
|
|
||||||
use utoipa::ToSchema;
|
use utoipa::ToSchema;
|
||||||
|
|
||||||
use crate::models::family::Model as FamilyModel;
|
use crate::models::family::Model as FamilyModel;
|
||||||
|
|||||||
Reference in New Issue
Block a user