Skip to content

Commit f17e4d4

Browse files
committed
Pre-release (v1)
1 parent ea8877b commit f17e4d4

File tree

27 files changed

+703
-416
lines changed

27 files changed

+703
-416
lines changed

.github/workflows/build_linux.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/build_macos.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/build_windows.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 0 additions & 134 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535
uses: codecov/codecov-action@v5
3636
with:
3737
token: ${{ secrets.CODECOV_TOKEN }}
38-
continue-on-error: false
38+
continue-on-error: true

Cargo.toml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[package]
2-
name = "template-rust-project"
3-
version = "0.2.4"
4-
description = "A template for Rust projects"
5-
repository = "https://github.com/habedi/template-rust-project"
2+
name = "graphina"
3+
version = "0.1.0"
4+
description = "A Rust library for graph data science."
5+
repository = "https://github.com/habedi/graphina"
66
license = "MIT OR Apache-2.0"
77
readme = "README.md"
8-
keywords = ["project-template", "rust", "library", "application"]
8+
keywords = ["graph", "data-science", "graph-algorithms", "graph-analytics"]
99
authors = ["Hassan Abedi <hassan.abedi.t@gmail.com>"]
10-
homepage = "https://github.com/habedi/template-rust-project"
11-
documentation = "https://docs.rs/template-rust-project"
12-
categories = ["development-tools"]
10+
homepage = "https://github.com/habedi/graphina"
11+
documentation = "https://docs.rs/graphina"
12+
categories = ["data-structures", "algorithms"]
1313
edition = "2021"
1414
rust-version = "1.83"
1515

@@ -29,11 +29,11 @@ include = [
2929
]
3030

3131
[lib]
32-
name = "template_rust_project"
32+
name = "graphina"
3333
path = "src/lib.rs"
3434

3535
[[bin]]
36-
name = "template-rust-project"
36+
name = "graphina"
3737
path = "src/main.rs"
3838

3939
[features]
@@ -44,6 +44,8 @@ binaries = []
4444
ctor = "0.2.9"
4545
tracing = "0.1.41"
4646
tracing-subscriber = "0.3.19"
47+
petgraph = { version = "0.7.1", features = ["graphmap", "stable_graph", "matrix_graph", "serde-1", "rayon"] }
48+
rand = "0.9.0"
4749

4850
[dev-dependencies]
4951
criterion = { version = "0.5", features = ["html_reports"] }

Makefile

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# Variables
2-
PKG = github.com/habedi/template-rust-project
2+
PKG = github.com/habedi/graphina
33
BINARY_NAME = $(or $(PROJ_BINARY), $(notdir $(PKG)))
44
BINARY = target/release/$(BINARY_NAME)
55
PATH := /snap/bin:$(PATH)
6-
DEBUG_PROJ = 1
6+
DEBUG_GRAPHINA = 1
7+
RUST_LOG = info
8+
RUST_BACKTRACE = 1
79

810
# Default target
911
.DEFAULT_GOAL := help
@@ -20,22 +22,22 @@ format: ## Format Rust files
2022
.PHONY: test
2123
test: format ## Run tests
2224
@echo "Running tests..."
23-
DEBUG_PROJ=$(DEBUG_PROJ) cargo test -- --nocapture
25+
DEBUG_GRAPHINA=$(DEBUG_GRAPHINA) cargo test -- --nocapture
2426

2527
.PHONY: coverage
2628
coverage: format ## Generate test coverage report
2729
@echo "Generating test coverage report..."
28-
DEBUG_PROJ=$(DEBUG_PROJ) cargo tarpaulin --out Xml --out Html
30+
DEBUG_GRAPHINA=$(DEBUG_GRAPHINA) cargo tarpaulin --out Xml --out Html
2931

3032
.PHONY: build
3133
build: format ## Build the binary for the current platform
3234
@echo "Building the project..."
33-
DEBUG_PROJ=$(DEBUG_PROJ) cargo build --release
35+
DEBUG_GRAPHINA=$(DEBUG_GRAPHINA) cargo build --release
3436

3537
.PHONY: run
3638
run: build ## Build and run the binary
3739
@echo "Running the $(BINARY) binary..."
38-
DEBUG_PROJ=$(DEBUG_PROJ) ./$(BINARY)
40+
DEBUG_GRAPHINA=$(DEBUG_GRAPHINA) ./$(BINARY)
3941

4042
.PHONY: clean
4143
clean: ## Remove generated and temporary files
@@ -60,7 +62,7 @@ install-deps: install-snap ## Install development dependencies
6062
.PHONY: lint
6163
lint: format ## Run linters on Rust files
6264
@echo "Linting Rust files..."
63-
DEBUG_PROJ=$(DEBUG_PROJ) cargo clippy -- -D warnings
65+
DEBUG_GRAPHINA=$(DEBUG_GRAPHINA) cargo clippy -- -D warnings
6466

6567
.PHONY: publish
6668
publish: ## Publish the package to crates.io (requires CARGO_REGISTRY_TOKEN to be set)
@@ -70,7 +72,7 @@ publish: ## Publish the package to crates.io (requires CARGO_REGISTRY_TOKEN to b
7072
.PHONY: bench
7173
bench: ## Run benchmarks
7274
@echo "Running benchmarks..."
73-
DEBUG_PROJ=$(DEBUG_PROJ) cargo bench
75+
DEBUG_GRAPHINA=$(DEBUG_GRAPHINA) cargo bench
7476

7577
.PHONY: audit
7678
audit: ## Run security audit on Rust dependencies

0 commit comments

Comments
 (0)