refactor: refactor kernel dataset into spec

This commit is contained in:
2026-07-22 14:30:29 +08:00
parent 3dd8275787
commit 1514d25da1
6 changed files with 521 additions and 482 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ use anyhow::Result;
use lcrconn::{
BfsResolver, DeviceKind, LutResolver, Request, Resolver, Response, ResponsePriority,
common::{Circuit, CircuitDeviceScale, JointKind, validate_device_value, validate_floating_point},
dataset::{DatasetCollection, from_human_readable_value, to_human_readable_value},
spec::{SpecCatalog, from_human_readable_value, to_human_readable_value},
query::MAX_RESPONSE_CNT,
};
use std::io::Write;
@@ -105,7 +105,7 @@ pub struct App {
impl App {
/// Create a new app with the given configuration.
pub fn new(config: AppConfig) -> Result<Self> {
let datasets = DatasetCollection::from_file(
let datasets = SpecCatalog::from_file(
config.get_resistor_dataset(),
config.get_capacitor_dataset(),
config.get_inductor_dataset(),