mirror of
https://github.com/encounter/decomp.dev.git
synced 2026-07-10 03:18:48 -07:00
Update objdiff-core
This commit is contained in:
Generated
+5
-5
@@ -2396,9 +2396,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "objdiff-core"
|
||||
version = "2.2.0"
|
||||
version = "2.2.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e9c26c115905f9e65e7e63385680912aaf61963494ede73727cd73c04c78d3d3"
|
||||
checksum = "08d4444dd46a076219165fa0bf8177c142a77798671626d2178f4ab66f4ff3f2"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"byteorder",
|
||||
@@ -3184,7 +3184,7 @@ checksum = "f8650aabb6c35b860610e9cff5dc1af886c9e25073b7b1712a68972af4281302"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"heck",
|
||||
"itertools 0.13.0",
|
||||
"itertools 0.10.5",
|
||||
"log",
|
||||
"multimap",
|
||||
"once_cell",
|
||||
@@ -3204,7 +3204,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "acf0c195eebb4af52c752bec4f52f645da98b6e92077a04110c7f349477ae5ac"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"itertools 0.13.0",
|
||||
"itertools 0.10.5",
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 2.0.77",
|
||||
@@ -5201,7 +5201,7 @@ version = "0.1.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
|
||||
dependencies = [
|
||||
"windows-sys 0.59.0",
|
||||
"windows-sys 0.48.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
||||
+1
-1
@@ -14,13 +14,13 @@ use prost::Message;
|
||||
|
||||
use crate::AppState;
|
||||
|
||||
mod assets;
|
||||
mod badge;
|
||||
mod css;
|
||||
mod js;
|
||||
mod project;
|
||||
mod report;
|
||||
mod treemap;
|
||||
mod assets;
|
||||
|
||||
pub fn build_router() -> Router<AppState> {
|
||||
Router::new()
|
||||
|
||||
@@ -13,7 +13,7 @@ use objdiff_core::bindings::report::{Measures, ReportCategory};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use url::Url;
|
||||
|
||||
use super::{badge, treemap, parse_accept, AppError, FullUri, Protobuf, PROTOBUF};
|
||||
use super::{badge, parse_accept, treemap, AppError, FullUri, Protobuf, PROTOBUF};
|
||||
use crate::{
|
||||
models::{Project, ProjectInfo, ReportFile},
|
||||
templates::render,
|
||||
@@ -111,6 +111,8 @@ struct TemplateMeasures {
|
||||
complete_code_percent: f32,
|
||||
complete_data: u64,
|
||||
complete_data_percent: f32,
|
||||
total_units: u32,
|
||||
complete_units: u32,
|
||||
}
|
||||
|
||||
impl From<&Measures> for TemplateMeasures {
|
||||
@@ -130,6 +132,8 @@ impl From<&Measures> for TemplateMeasures {
|
||||
complete_code_percent,
|
||||
complete_data,
|
||||
complete_data_percent,
|
||||
total_units,
|
||||
complete_units,
|
||||
}: &Measures,
|
||||
) -> Self {
|
||||
Self {
|
||||
@@ -147,6 +151,8 @@ impl From<&Measures> for TemplateMeasures {
|
||||
complete_code_percent,
|
||||
complete_data,
|
||||
complete_data_percent,
|
||||
total_units,
|
||||
complete_units,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -353,6 +359,8 @@ const EMPTY_MEASURES: Measures = Measures {
|
||||
complete_code_percent: 0.0,
|
||||
complete_data: 0,
|
||||
complete_data_percent: 0.0,
|
||||
total_units: 0,
|
||||
complete_units: 0,
|
||||
};
|
||||
|
||||
fn apply_category<'a>(
|
||||
|
||||
+1
-1
@@ -4,9 +4,9 @@ mod db;
|
||||
mod github;
|
||||
mod handlers;
|
||||
mod models;
|
||||
mod svg;
|
||||
mod templates;
|
||||
mod util;
|
||||
mod svg;
|
||||
|
||||
use std::{
|
||||
fs::File,
|
||||
|
||||
Reference in New Issue
Block a user