-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f64da7a
commit 61cdae7
Showing
8 changed files
with
79 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
merge_group: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
components: rustfmt, clippy | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: cargo fmt --all --check | ||
- run: cargo clippy --all-features -- -D warnings | ||
- run: cargo test --all-features |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,23 @@ | |
name = "xyz-parse" | ||
version = "0.1.0" | ||
edition = "2021" | ||
authors = ["Julian Popescu <[email protected]>"] | ||
license = "MIT OR Apache-2.0" | ||
readme = "README.md" | ||
homepage = "https://github.com/aqora-io/xyz-parse" | ||
documentation = "https://docs.rs/xyz-parse/" | ||
repository = "https://github.com/aqora-io/xyz-parse" | ||
description = "Simple parser for the XYZ file format" | ||
keywords = ["xyz", "chemistry", "parser", "parse"] | ||
categories = ["parsing"] | ||
|
||
[lib] | ||
path = "src/lib.rs" | ||
name = "xyz_parse" | ||
crate-type = ["cdylib"] | ||
|
||
[features] | ||
default = ["python"] | ||
default = [] | ||
python = ["pyo3"] | ||
|
||
[dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# xyz-parse | ||
|
||
A parser for the [XYZ file format](https://en.wikipedia.org/wiki/XYZ_file_format) | ||
|
||
The formatting of the .xyz file format is as follows: | ||
|
||
```rust | ||
<number of atoms> | ||
comment line | ||
<element> <X> <Y> <Z> | ||
... | ||
``` | ||
|
||
Currently the parser does not support extended XYZ format, but may do so in the future |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters