Skip to content

Commit 7068570

Browse files
authored
feat: add basic functionalities (#1)
1 parent b04dced commit 7068570

21 files changed

+1107
-0
lines changed

.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
root = true
2+
3+
[*]
4+
indent_style = tab
5+
charset = utf-8
6+
end_of_line = lf
7+
trim_trailing_whitespace = true
8+
insert_final_newline = false
9+
max_line_length = 100
10+
11+
[*.yaml]
12+
indent_style = space
13+
indent_size = 2

.githooks/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*
2+
3+
!.git*
4+
!pre-commit

.githooks/pre-commit

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
3+
for FILE in `git diff --cached --name-only`; do
4+
if [ -f $FILE ]; then
5+
case $FILE in
6+
*.rs)
7+
rustfmt --unstable-features --skip-children $FILE ;;
8+
esac
9+
perl -pi -e 'chomp if eof' $FILE
10+
git add $FILE
11+
fi
12+
done

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.*
2+
target
3+
Cargo.lock
4+
5+
!.git*
6+
!.vscode
7+
!.editorconfig

.vscode/settings.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"editor.codeActionsOnSave": { "source.fixAll.eslint": true },
4+
"editor.defaultFormatter": "esbenp.prettier-vscode",
5+
"files.removeFinalNewlines": true,
6+
"[rust]": {
7+
"editor.defaultFormatter": "rust-lang.rust-analyzer"
8+
},
9+
"[toml]": {
10+
"editor.defaultFormatter": "tamasfe.even-better-toml"
11+
},
12+
"rust-analyzer.server.extraEnv": {
13+
"CARGO_TARGET_DIR": "target/analyzer"
14+
},
15+
"rust-analyzer.check.extraArgs": [
16+
"--target-dir=target/analyzer"
17+
],
18+
}

Cargo.toml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[package]
2+
name = "internode"
3+
version = "0.0.0"
4+
license = "MPL-2.0"
5+
authors = ["Sʜɪᴍᴜʀᴀ Yū <mail@yuhr.org>"]
6+
description = "Smart references to your graph nodes."
7+
readme = "README.md"
8+
repository = "https://github.com/yuhr/internode"
9+
categories = ["data-structures", "rust-patterns"]
10+
keywords = ["graph", "tree"]
11+
exclude = [".*", "*.toml", "justfile"]
12+
edition = "2021"
13+
14+
[lib]
15+
doctest = false
16+
17+
[dependencies]
18+
genawaiter = { version = "0.99.1", default-features = false }

0 commit comments

Comments
 (0)