board: move board to its own directory

This commit is contained in:
Mikolaj Wielgus 2024-06-08 13:37:27 +02:00
parent cd1e78db6f
commit 1dc3718159
9 changed files with 10 additions and 6 deletions

View File

@ -14,10 +14,10 @@ use thiserror::Error;
use crate::{ use crate::{
autorouter::{ autorouter::{
board::Board,
ratsnest::{Ratsnest, RatvertexIndex}, ratsnest::{Ratsnest, RatvertexIndex},
selection::Selection, selection::Selection,
}, },
board::Board,
drawing::{ drawing::{
dot::FixedDotIndex, dot::FixedDotIndex,
graph::{GetLayer, GetMaybeNet}, graph::{GetLayer, GetMaybeNet},

View File

@ -1,5 +1,4 @@
mod autorouter; mod autorouter;
pub mod board;
pub mod history; pub mod history;
pub mod invoker; pub mod invoker;
pub mod ratsnest; pub mod ratsnest;

View File

@ -3,7 +3,7 @@ use std::collections::HashSet;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use crate::{ use crate::{
autorouter::board::Board, board::Board,
drawing::{ drawing::{
graph::{GetLayer, MakePrimitive, PrimitiveIndex}, graph::{GetLayer, MakePrimitive, PrimitiveIndex},
rules::RulesTrait, rules::RulesTrait,

View File

@ -5,7 +5,8 @@ use rstar::AABB;
use spade::InsertionError; use spade::InsertionError;
use topola::{ use topola::{
autorouter::{board::Board, ratsnest::Ratsnest, selection::Selection}, autorouter::{ratsnest::Ratsnest, selection::Selection},
board::Board,
drawing::{ drawing::{
graph::{GetLayer, MakePrimitive}, graph::{GetLayer, MakePrimitive},
primitive::MakePrimitiveShape, primitive::MakePrimitiveShape,

3
src/board/mod.rs Normal file
View File

@ -0,0 +1,3 @@
mod board;
pub use board::*;

View File

@ -4,7 +4,7 @@ use geo::{point, Point, Rotate, Translate};
use thiserror::Error; use thiserror::Error;
use crate::{ use crate::{
autorouter::board::Board, board::Board,
drawing::{dot::FixedDotWeight, seg::FixedSegWeight, Drawing}, drawing::{dot::FixedDotWeight, seg::FixedSegWeight, Drawing},
dsn::{ dsn::{
de, de,

View File

@ -4,6 +4,7 @@ pub mod graph;
#[macro_use] #[macro_use]
pub mod drawing; pub mod drawing;
pub mod autorouter; pub mod autorouter;
pub mod board;
pub mod dsn; pub mod dsn;
pub mod geometry; pub mod geometry;
pub mod layout; pub mod layout;

View File

@ -3,11 +3,11 @@ use std::fs::File;
use petgraph::{stable_graph::NodeIndex, unionfind::UnionFind, visit::NodeIndexable}; use petgraph::{stable_graph::NodeIndex, unionfind::UnionFind, visit::NodeIndexable};
use topola::{ use topola::{
autorouter::{ autorouter::{
board::Board,
history::HistoryError, history::HistoryError,
invoker::{Invoker, InvokerError}, invoker::{Invoker, InvokerError},
Autorouter, Autorouter,
}, },
board::Board,
drawing::{ drawing::{
graph::{GetLayer, GetMaybeNet}, graph::{GetLayer, GetMaybeNet},
rules::RulesTrait, rules::RulesTrait,