chore(licensing): add REUSE license headers to `**.{rs,md,toml}` files

I ran the following command in Fish shell:

```
reuse annotate --skip-unrecognised --copyright="Topola contributors" --license="MIT" **.{rs,md,toml}
```

The choice of year 2024 in the copyright statements is intentional.
This commit is contained in:
Mikolaj Wielgus 2024-12-29 18:04:46 +01:00
parent d8082f05b0
commit 44c30caafe
105 changed files with 445 additions and 7 deletions

View File

@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 Topola contributors
SPDX-License-Identifier: MIT
-->
# Contributing to Topola # Contributing to Topola
*Anyone* can contribute to Topola, including you. *Anyone* can contribute to Topola, including you.

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Topola contributors
#
# SPDX-License-Identifier: MIT
[workspace] [workspace]
members = [".", "crates/*", "crates/*/fuzz"] members = [".", "crates/*", "crates/*/fuzz"]
resolver = "2" resolver = "2"

View File

@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 Topola contributors
SPDX-License-Identifier: MIT
-->
# Installing Topola # Installing Topola
## Building and installing Topola from source ## Building and installing Topola from source

18
LICENSES/MIT.txt Normal file
View File

@ -0,0 +1,18 @@
MIT License
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 Topola contributors
SPDX-License-Identifier: MIT
-->
# Topola # Topola
[Topola](https://topola.dev) is a work-in-progress interactive [Topola](https://topola.dev) is a work-in-progress interactive

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Topola contributors
#
# SPDX-License-Identifier: MIT
[package] [package]
name = "specctra-core" name = "specctra-core"
version = "0.1.0" version = "0.1.0"

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Topola contributors
#
# SPDX-License-Identifier: MIT
[package] [package]
name = "specctra-core-fuzz" name = "specctra-core-fuzz"
version = "0.0.0" version = "0.0.0"

View File

@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 Topola contributors
SPDX-License-Identifier: MIT
-->
# Fuzzer for `specctra-core` # Fuzzer for `specctra-core`
This fuzzer uses [`cargo-fuzz`](https://rust-fuzz.github.io/book/cargo-fuzz/tutorial.html). This fuzzer uses [`cargo-fuzz`](https://rust-fuzz.github.io/book/cargo-fuzz/tutorial.html).

View File

@ -1,5 +1,9 @@
#![no_main] #![no_main]
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use libfuzzer_sys::fuzz_target; use libfuzzer_sys::fuzz_target;
fuzz_target!(|data: &str| { fuzz_target!(|data: &str| {

View File

@ -1,5 +1,9 @@
#![no_main] #![no_main]
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use libfuzzer_sys::fuzz_target; use libfuzzer_sys::fuzz_target;
fuzz_target!(|data: &str| { fuzz_target!(|data: &str| {

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use thiserror::Error; use thiserror::Error;
#[derive(Error, Debug)] #[derive(Error, Debug)]

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
//! Module about handling the Specctra based file format, and parsing + serializing it //! Module about handling the Specctra based file format, and parsing + serializing it
pub mod error; pub mod error;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use core::ops::Sub; use core::ops::Sub;
use geo_types::geometry::Point; use geo_types::geometry::Point;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
//! Module for handling Specctra's mesadata - design rules, as well as layers //! Module for handling Specctra's mesadata - design rules, as well as layers
//! or net properties //! or net properties

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use super::error::{ParseError, ParseErrorContext}; use super::error::{ParseError, ParseErrorContext};
use super::structure::Parser; use super::structure::Parser;
use super::ListToken; use super::ListToken;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
pub trait GetConditions { pub trait GetConditions {
fn conditions(&self) -> Conditions; fn conditions(&self) -> Conditions;
} }

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use super::read::{ListTokenizer, ReadDsn}; use super::read::{ListTokenizer, ReadDsn};
use super::write::ListWriter; use super::write::ListWriter;
use super::write::WriteSes; use super::write::WriteSes;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use super::ListToken; use super::ListToken;
use std::io; use std::io;

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Topola contributors
#
# SPDX-License-Identifier: MIT
[package] [package]
name = "specctra_derive" name = "specctra_derive"
version = "0.1.0" version = "0.1.0"

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use proc_macro::TokenStream; use proc_macro::TokenStream;
use syn::punctuated::Punctuated; use syn::punctuated::Punctuated;
use syn::{Attribute, DeriveInput, LitStr, Meta, Token}; use syn::{Attribute, DeriveInput, LitStr, Meta, Token};

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use proc_macro2::TokenStream; use proc_macro2::TokenStream;
use quote::quote; use quote::quote;
use syn::ext::IdentExt; use syn::ext::IdentExt;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use proc_macro2::TokenStream; use proc_macro2::TokenStream;
use quote::quote; use quote::quote;
use syn::ext::IdentExt; use syn::ext::IdentExt;

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Topola contributors
#
# SPDX-License-Identifier: MIT
[package] [package]
name = "topola-cli" name = "topola-cli"
description = "Work-in-progress free and open-source topological (rubberband) router and autorouter for printed circuit boards (PCBs)" description = "Work-in-progress free and open-source topological (rubberband) router and autorouter for printed circuit boards (PCBs)"

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
include!("src/cli.rs"); include!("src/cli.rs");
use clap::CommandFactory; use clap::CommandFactory;
use clap_mangen::Man; use clap_mangen::Man;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use clap::Parser; use clap::Parser;
use std::path::PathBuf; use std::path::PathBuf;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use clap::Parser; use clap::Parser;
use std::fs::File; use std::fs::File;
use std::io::BufReader; use std::io::BufReader;

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Topola contributors
#
# SPDX-License-Identifier: MIT
[package] [package]
name = "topola-egui" name = "topola-egui"
description = "Work-in-progress free and open-source topological (rubberband) router and autorouter for printed circuit boards (PCBs)" description = "Work-in-progress free and open-source topological (rubberband) router and autorouter for printed circuit boards (PCBs)"

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
pub struct Action { pub struct Action {
name: String, name: String,
shortcut: egui::KeyboardShortcut, shortcut: egui::KeyboardShortcut,

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use crate::{ use crate::{
action::{Action, Switch, Trigger}, action::{Action, Switch, Trigger},
translator::Translator, translator::Translator,

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use geo::point; use geo::point;
use std::{ use std::{
future::Future, future::Future,

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use topola::board::{mesadata::AccessMesadata, Board}; use topola::board::{mesadata::AccessMesadata, Board};
pub struct AppearancePanel { pub struct AppearancePanel {

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use std::collections::HashMap; use std::collections::HashMap;
#[derive(Clone, Debug, PartialEq, serde::Deserialize, serde::Serialize)] #[derive(Clone, Debug, PartialEq, serde::Deserialize, serde::Serialize)]

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
//! dialog for error messages (e.g. for displaying file parser errors) //! dialog for error messages (e.g. for displaying file parser errors)
use crate::translator::Translator; use crate::translator::Translator;

View File

@ -1,5 +1,9 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
mod action; mod action;
mod actions; mod actions;
mod app; mod app;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use std::{borrow::Cow, ops::ControlFlow, path::Path, sync::mpsc::Sender}; use std::{borrow::Cow, ops::ControlFlow, path::Path, sync::mpsc::Sender};
use topola::{ use topola::{

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use geo::Point; use geo::Point;
use rstar::AABB; use rstar::AABB;
use spade::InsertionError; use spade::InsertionError;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use geo::{CoordsIter, Point, Polygon}; use geo::{CoordsIter, Point, Polygon};
use rstar::AABB; use rstar::AABB;
use topola::{ use topola::{

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use std::ops::ControlFlow; use std::ops::ControlFlow;
use topola::interactor::activity::ActivityStepperWithStatus; use topola::interactor::activity::ActivityStepperWithStatus;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use derive_getters::Getters; use derive_getters::Getters;
use fluent_templates::{static_loader, Loader}; use fluent_templates::{static_loader, Loader};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use geo::point; use geo::point;
use petgraph::{ use petgraph::{
data::DataMap, data::DataMap,

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use std::{ use std::{
ops::ControlFlow, ops::ControlFlow,
sync::mpsc::{channel, Receiver, Sender}, sync::mpsc::{channel, Receiver, Sender},

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use std::fs::File; use std::fs::File;
use std::io::BufReader; use std::io::BufReader;
use topola::autorouter::invoker::Invoker; use topola::autorouter::invoker::Invoker;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
//! Manages autorouting of ratlines in a layout, tracking status and processed //! Manages autorouting of ratlines in a layout, tracking status and processed
//! routing steps. //! routing steps.

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use derive_getters::Getters; use derive_getters::Getters;
use geo::Point; use geo::Point;
use petgraph::graph::{EdgeIndex, NodeIndex}; use petgraph::graph::{EdgeIndex, NodeIndex};

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
//! Manages the comparison of detours between two ratlines, tracking their //! Manages the comparison of detours between two ratlines, tracking their
//! routing statuses and recording their lengths. //! routing statuses and recording their lengths.

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use std::ops::ControlFlow; use std::ops::ControlFlow;
use enum_dispatch::enum_dispatch; use enum_dispatch::enum_dispatch;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
//! Manages command history operations, allowing for undoing and redoing commands. //! Manages command history operations, allowing for undoing and redoing commands.
//! Handles error scenarios related to command history, maintaining lists of executed //! Handles error scenarios related to command history, maintaining lists of executed
//! and undone commands for easy navigation. //! and undone commands for easy navigation.

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
//! Manages the execution of routing commands within the autorouting system. //! Manages the execution of routing commands within the autorouting system.
use std::{cmp::Ordering, ops::ControlFlow}; use std::{cmp::Ordering, ops::ControlFlow};

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
//! Provides functionality for measuring the total length of selected //! Provides functionality for measuring the total length of selected
//! bands in a PCB layout. It interacts with the autorouter to calculate and return //! bands in a PCB layout. It interacts with the autorouter to calculate and return
//! the length of specified band selections. //! the length of specified band selections.

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
//! Manages autorouting process, under work for now //! Manages autorouting process, under work for now
pub mod autoroute; pub mod autoroute;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
//! Provides functionality for placing vias in a PCB layout, manages //! Provides functionality for placing vias in a PCB layout, manages
//! the process of inserting a via with a specified weight and //! the process of inserting a via with a specified weight and
//! checks if the via has already been placed. //! checks if the via has already been placed.

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use std::ops::ControlFlow; use std::ops::ControlFlow;
use geo::Point; use geo::Point;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
//! Defines data structures and methods for managing a graph //! Defines data structures and methods for managing a graph
//! used in layout triangulation and routing tasks. It includes vertex and edge //! used in layout triangulation and routing tasks. It includes vertex and edge
//! structures for representing graph nodes and edges with associated metadata, //! structures for representing graph nodes and edges with associated metadata,

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
//! Provides functionality to remove bands from the layout. //! Provides functionality to remove bands from the layout.
use crate::{ use crate::{

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use std::collections::HashSet; use std::collections::HashSet;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
//! Provides the functionality to create and manage relationships //! Provides the functionality to create and manage relationships
//! between nodes, pins, and bands, as well as handle metadata and geometric data //! between nodes, pins, and bands, as well as handle metadata and geometric data
//! for layout construction. //! for layout construction.

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
// FIXME (implement Hash for BandUid and such) // FIXME (implement Hash for BandUid and such)
#![allow(clippy::derived_hash_with_manual_eq)] #![allow(clippy::derived_hash_with_manual_eq)]

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use enum_dispatch::enum_dispatch; use enum_dispatch::enum_dispatch;
use crate::{ use crate::{

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use super::{ use super::{
bend::LooseBendIndex, bend::LooseBendIndex,
dot::LooseDotIndex, dot::LooseDotIndex,

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use crate::graph::{GenericIndex, GetPetgraphIndex, MakeRef}; use crate::graph::{GenericIndex, GetPetgraphIndex, MakeRef};
use super::{ use super::{

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use enum_dispatch::enum_dispatch; use enum_dispatch::enum_dispatch;
use geo::Point; use geo::Point;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use contracts_try::{debug_ensures, debug_invariant}; use contracts_try::{debug_ensures, debug_invariant};
use derive_getters::Getters; use derive_getters::Getters;
use enum_dispatch::enum_dispatch; use enum_dispatch::enum_dispatch;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use enum_dispatch::enum_dispatch; use enum_dispatch::enum_dispatch;
use petgraph::stable_graph::NodeIndex; use petgraph::stable_graph::NodeIndex;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use enum_dispatch::enum_dispatch; use enum_dispatch::enum_dispatch;
use petgraph::stable_graph::NodeIndex; use petgraph::stable_graph::NodeIndex;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use geo::Line; use geo::Line;
use crate::{ use crate::{

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use enum_dispatch::enum_dispatch; use enum_dispatch::enum_dispatch;
use crate::{geometry::shape::MeasureLength, graph::MakeRef}; use crate::{geometry::shape::MeasureLength, graph::MakeRef};

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use enum_dispatch::enum_dispatch; use enum_dispatch::enum_dispatch;
use petgraph::stable_graph::NodeIndex; use petgraph::stable_graph::NodeIndex;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
#[macro_use] #[macro_use]
pub mod graph; pub mod graph;
pub mod band; pub mod band;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use enum_dispatch::enum_dispatch; use enum_dispatch::enum_dispatch;
use petgraph::stable_graph::NodeIndex; use petgraph::stable_graph::NodeIndex;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use enum_dispatch::enum_dispatch; use enum_dispatch::enum_dispatch;
use crate::{ use crate::{

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use crate::graph::{GenericIndex, GetPetgraphIndex}; use crate::graph::{GenericIndex, GetPetgraphIndex};
pub trait ManageCompounds<CW: Copy, GI: GetPetgraphIndex + Copy> { pub trait ManageCompounds<CW: Copy, GI: GetPetgraphIndex + Copy> {

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use std::{collections::HashMap, hash::Hash, marker::PhantomData}; use std::{collections::HashMap, hash::Hash, marker::PhantomData};
use crate::{ use crate::{

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use std::marker::PhantomData; use std::marker::PhantomData;
use derive_getters::Getters; use derive_getters::Getters;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
#[macro_use] #[macro_use]
mod geometry; mod geometry;
pub mod compound; pub mod compound;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use geo::algorithm::line_measures::{Euclidean, Length}; use geo::algorithm::line_measures::{Euclidean, Length};
use geo::{Centroid, Contains, Point, Polygon}; use geo::{Centroid, Contains, Point, Polygon};

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use std::f64::consts::TAU; use std::f64::consts::TAU;
use enum_dispatch::enum_dispatch; use enum_dispatch::enum_dispatch;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use std::collections::hash_map::Entry as HashMapEntry; use std::collections::hash_map::Entry as HashMapEntry;
use std::hash::Hash; use std::hash::Hash;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use enum_dispatch::enum_dispatch; use enum_dispatch::enum_dispatch;
use geo::Point; use geo::Point;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use contracts_try::debug_invariant; use contracts_try::debug_invariant;
use derive_getters::Getters; use derive_getters::Getters;
use geo::Point; use geo::Point;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use std::{ use std::{
hash::{Hash, Hasher}, hash::{Hash, Hasher},
marker::PhantomData, marker::PhantomData,

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use std::ops::ControlFlow; use std::ops::ControlFlow;
use geo::Point; use geo::Point;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use std::ops::ControlFlow; use std::ops::ControlFlow;
use thiserror::Error; use thiserror::Error;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use std::ops::ControlFlow; use std::ops::ControlFlow;
use spade::InsertionError; use spade::InsertionError;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
pub mod activity; pub mod activity;
pub mod interaction; pub mod interaction;
mod interactor; mod interactor;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use contracts_try::debug_ensures; use contracts_try::debug_ensures;
use derive_getters::Getters; use derive_getters::Getters;
use enum_dispatch::enum_dispatch; use enum_dispatch::enum_dispatch;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
//! Layout module for handling board geometry. //! Layout module for handling board geometry.
mod layout; mod layout;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
//! Module for handling Polygon properties //! Module for handling Polygon properties
use enum_dispatch::enum_dispatch; use enum_dispatch::enum_dispatch;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
//! Module for handling Vias properties //! Module for handling Vias properties
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};

View File

@ -1,5 +1,10 @@
#![doc( #![doc(
html_favicon_url = "https://codeberg.org/topola/topola/raw/commit/e1b56875edf039aab9f41868826bcd3a92097133/assets/favicon.ico"
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
html_favicon_url = "https://codeberg.org/topola/topola/raw/commit/e1b56875edf039aab9f41868826bcd3a92097133/assets/favicon.ico"
)] )]
#![doc( #![doc(
html_logo_url = "https://codeberg.org/topola/topola/raw/commit/e1b56875edf039aab9f41868826bcd3a92097133/assets/logo.svg" html_logo_url = "https://codeberg.org/topola/topola/raw/commit/e1b56875edf039aab9f41868826bcd3a92097133/assets/logo.svg"

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use geo::algorithm::line_measures::{Distance, Euclidean}; use geo::algorithm::line_measures::{Distance, Euclidean};
use geo::{geometry::Point, point, Line}; use geo::{geometry::Point, point, Line};
use thiserror::Error; use thiserror::Error;

View File

@ -1,9 +1,8 @@
/** // Copyright (c) 2015
* // SPDX-FileCopyrightText: 2024 Topola contributors
* Copied and substantially modified from petgraph's scored.rs and algo/astar.rs. //
* // SPDX-License-Identifier: MIT
* Copyright (c) 2015
**/
use std::collections::hash_map::Entry::{Occupied, Vacant}; use std::collections::hash_map::Entry::{Occupied, Vacant};
use std::collections::{BinaryHeap, HashMap, VecDeque}; use std::collections::{BinaryHeap, HashMap, VecDeque};

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use contracts_try::debug_ensures; use contracts_try::debug_ensures;
use geo::Point; use geo::Point;
use thiserror::Error; use thiserror::Error;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
pub mod astar; pub mod astar;
pub mod draw; pub mod draw;
pub mod navcord; pub mod navcord;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use contracts_try::debug_ensures; use contracts_try::debug_ensures;
use petgraph::data::DataMap; use petgraph::data::DataMap;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use contracts_try::{debug_ensures, debug_requires}; use contracts_try::{debug_ensures, debug_requires};
use thiserror::Error; use thiserror::Error;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use std::collections::HashMap; use std::collections::HashMap;
use enum_dispatch::enum_dispatch; use enum_dispatch::enum_dispatch;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use std::ops::ControlFlow; use std::ops::ControlFlow;
use derive_getters::{Dissolve, Getters}; use derive_getters::{Dissolve, Getters};

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
use derive_getters::Getters; use derive_getters::Getters;
use geo::algorithm::line_measures::{Distance, Euclidean}; use geo::algorithm::line_measures::{Distance, Euclidean};
use petgraph::{data::DataMap, visit::EdgeRef}; use petgraph::{data::DataMap, visit::EdgeRef};

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
//! Module for managing the various Specctra PCB design, including loading the //! Module for managing the various Specctra PCB design, including loading the
//! Design DSN file, creating the [`Board`] object from the file, as well as //! Design DSN file, creating the [`Board`] object from the file, as well as
//! exporting the session file //! exporting the session file

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Topola contributors
//
// SPDX-License-Identifier: MIT
//! Module containing the informations about handling the Specctra //! Module containing the informations about handling the Specctra
//! based file format, and parsing it into Topola's objects //! based file format, and parsing it into Topola's objects
#![forbid(unused_must_use)] #![forbid(unused_must_use)]

Some files were not shown because too many files have changed in this diff Show More