Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Moved from github.com/ya7on/mine-rs
  • Loading branch information
ya7on committed Feb 24, 2024
0 parents commit a04abc3
Show file tree
Hide file tree
Showing 72 changed files with 2,919 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Rust

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --workspace --verbose
- name: Lint
run: cargo clippy --all-targets --all-features
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.idea/
.vscode/

/target
237 changes: 237 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[package]
name = "mclib"
version = "0.0.1"
authors = ["S. Suprun <hello@syoma.website>"]
description = "Utils and helpers for Minecraft protocol"
license = "Apache-2.0"
categories = ["game-development"]
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[workspace]
members = ["macros", "protocol"]

[workspace.dependencies]
mclib-macros = { path = "macros" }
mclib-protocol = { path = "protocol" }

darling = { version = "0.20.3" }
flate2 = { version = "1.0.28" }
syn = { version = "2.0.39" }
uuid = { version = "1.5.0", features = ["v4", "fast-rng", "macro-diagnostics"] }

[dependencies]
mclib-macros = { workspace = true }
mclib-protocol = { workspace = true }
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# MCLib MineCraft Library for Rust

Utils and helpers for Minecraft Protocol
11 changes: 11 additions & 0 deletions macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[package]
name = "mclib-macros"
version = "0.1.0"
edition = "2021"

[lib]
proc-macro = true

[dependencies]
darling = { workspace = true }
syn = { workspace = true }
Loading

0 comments on commit a04abc3

Please sign in to comment.