Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hobofan/smiles-parser

nom-based SMILES parser for Rust based on OpenSMILES
https://github.com/hobofan/smiles-parser

Last synced: 22 days ago
JSON representation

nom-based SMILES parser for Rust based on OpenSMILES

Awesome Lists containing this project

README

        

## smiles-parser - SMILES parser in Rust based on the OpenSMILES spec


Crates.io version


docs.rs docs

## Installation

Via [cargo-edit](https://github.com/killercup/cargo-edit):

```
cargo add smiles-parser
```

## Usage

Parse a chain (top-level object):

```rust
use smiles_parser::chain;

let chain = chain(b"C1CCC2(CC1)CO2");
assert!(chain.is_ok());
```

#### License


Licensed under either of Apache License, Version
2.0
or MIT license at your option.



Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in this crate by you, as defined in the Apache-2.0 license, shall
be dual licensed as above, without any additional terms or conditions.