mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
make azalea-pathfinder dir
This commit is contained in:
parent
aa78491ee0
commit
ce0ab8b79c
5 changed files with 38 additions and 0 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -229,6 +229,10 @@ dependencies = [
|
|||
"num-traits",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "azalea-pathfinder"
|
||||
version = "0.1.0"
|
||||
|
||||
[[package]]
|
||||
name = "azalea-physics"
|
||||
version = "0.1.0"
|
||||
|
|
|
@ -16,6 +16,7 @@ members = [
|
|||
"azalea-buf",
|
||||
"azalea-physics",
|
||||
"azalea-registry",
|
||||
"azalea-pathfinder",
|
||||
]
|
||||
|
||||
[profile.release]
|
||||
|
|
8
azalea-pathfinder/Cargo.toml
Normal file
8
azalea-pathfinder/Cargo.toml
Normal file
|
@ -0,0 +1,8 @@
|
|||
[package]
|
||||
name = "azalea-pathfinder"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
11
azalea-pathfinder/README.md
Normal file
11
azalea-pathfinder/README.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Azalea Pathfinder
|
||||
|
||||
Depended on by `azalea` for pathfinding.
|
||||
|
||||
TODO: actually implement it
|
||||
|
||||
## How it works
|
||||
|
||||
d* lite and stuff
|
||||
|
||||
|
14
azalea-pathfinder/src/lib.rs
Normal file
14
azalea-pathfinder/src/lib.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
pub fn add(left: usize, right: usize) -> usize {
|
||||
left + right
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let result = add(2, 2);
|
||||
assert_eq!(result, 4);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue