toml
Version, currently 0.5.09 versions
github.com/crystal-community/toml.cr
TOML parser for Crystal
64 stars
2 dependents
License: not declared
Nothing has been indexed for 0.5.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
toml:
github: crystal-community/toml.cr
version: ~> 0.5.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.5.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# toml.cr
[](https://travis-ci.org/crystal-community/toml.cr)
A [TOML](https://github.com/toml-lang/toml) parser for [Crystal](http://crystal-lang.org/), compliant with the v0.5.0 version of TOML.
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
toml:
github: crystal-community/toml.cr
branch: master
```
### Usage
```crystal
require "toml"
toml_string = %(
title = "TOML Example"
[owner]
name = "Lance Uppercut"
dob = 1979-05-27T07:32:00Z
)
toml = TOML.parse(toml_string)
puts toml["title"] #=> "TOML Example"
owner = toml["owner"].as(Hash)
puts owner["name"] #=> "Lance Uppercut"
puts owner["dob"] #=> "1979-05-27 07:32:00 UTC"
```
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.5.0- Tagged
- Apr 29, 2026
- Commit
f2580f975fdb- Indexed
- not yet
Dependents
Repository
github.com/crystal-community/toml.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 9