Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shoothzj committed Sep 11, 2024
0 parents commit 6476a14
Show file tree
Hide file tree
Showing 12 changed files with 129 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/commit_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: commit lint
on:
pull_request:
branches:
- main

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: wagoid/commitlint-github-action@v5
14 changes: 14 additions & 0 deletions .github/workflows/line_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: line lint
on:
pull_request:
branches:
- main

jobs:
line-lint:
name: line lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: linelint
uses: fernandrone/linelint@master
16 changes: 16 additions & 0 deletions .github/workflows/rust_clippy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: rust clippy
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup component add clippy
- run: cargo clippy
15 changes: 15 additions & 0 deletions .github/workflows/rust_fmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: rust fmt
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo fmt --check
16 changes: 16 additions & 0 deletions .github/workflows/rust_unit_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: rust test
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
rust_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run unit tests
run: cargo test
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# file system
.DS_Store

# ide
.idea/**
!.idea/icon.svg
!.idea/vcs.xml

### Rust ###
# Generated by Cargo
# will have compiled files and executables
debug/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
# End of https://www.toptal.com/developers/gitignore/api/rust
6 changes: 6 additions & 0 deletions .idea/vcs.xml

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

6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "opcua-rs"
version = "0.0.1"
edition = "2021"

[dependencies]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# opcua-rust
7 changes: 7 additions & 0 deletions src/client.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pub struct Client {}

impl Client {
pub fn new() -> Self {
Client {}
}
}
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mod client;
mod server;

pub use client::Client;
pub use server::Server;
7 changes: 7 additions & 0 deletions src/server.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pub struct Server {}

impl Server {
pub fn new() -> Self {
Server {}
}
}

0 comments on commit 6476a14

Please sign in to comment.