Questions tagged [toml]

TOML is a language designed for configuring software

TOML stands for Tom’s Obvious, Minimal Language. It is a language designed for configuring software.

From its repository:

TOML aims to be a minimal configuration file format that's easy to read due to obvious semantics. TOML is designed to map unambiguously to a hash table. TOML should be easy to parse into data structures in a wide variety of languages.

Resources

238 questions
0
votes
1 answer

Writing .cargo/config.toml to allow rust code to be imported by python

I'm using rust-cpython to make a python module in rust. I've run my code on a linux os and it runs just fine but I get the familiar "linking with cc failed:exit code 1 error". I've gathered from this that I need to add the .cargo/config file to my…
Alesi Rowland
  • 379
  • 2
  • 16
0
votes
2 answers

Can't find py_module_initializer! when building python module in rust

Very new to Rust. I'm trying to build a python module in Rust using rust-cypthon. Currently, I can access cpython types but can't call py_module_initializer! which I believe is required to make the module run in python. When compiling the code,…
Alesi Rowland
  • 379
  • 2
  • 16
0
votes
1 answer

confd configuration with HashiCorp Vault KV v2

I'm creating a Vault Dev Server with sudo vault server -dev and putting a simple KV v2 secret with: vault kv put secret/database url=db.example.com I wish confd pick that value whenever value is changed in KV store in Vault. But I'm getting the…
Janshair Khan
  • 2,577
  • 4
  • 20
  • 44
0
votes
0 answers

How to express this TOML format in Serde

I have a Rust structure that I can deserialize: pub struct ProcessReference { pub alias: Name, pub source: String, #[serde(rename = "input")] pub initializations: Option>, } where input is optional. This…
Andrew Mackenzie
  • 5,477
  • 5
  • 48
  • 70
0
votes
1 answer

Parsing a key value pair within a table for TOML file and golang

I have the following structure for a TOML file: [database] host = "localhost" port = 8086 https = true username = "root" password = "root" db = "test" [cloud] deviceType = "2be386e9bbae" deviceId = "119a705fa3b1" password = "test" token =…
Shan-Desai
  • 3,101
  • 3
  • 46
  • 89
0
votes
1 answer

blogdown indentation for TOML tables - in particular the default `config.toml` file

[params] description = "A website built through Hugo and blogdown." # options for highlight.js (version, additional languages, and theme) highlightjsVersion = "9.12.0" highlightjsCDN = "//cdnjs.cloudflare.com/ajax/libs" …
Display name
  • 4,153
  • 5
  • 27
  • 75
0
votes
1 answer

blogdown - how do I specify which page a post will appear on

baseurl = "/" relativeurls = false languageCode = "en-us" title = "A Hugo website" theme = "hugo-lithium" googleAnalytics = "" disqusShortname = "" ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown", "_files$", "_cache$"] [permalinks] post =…
Display name
  • 4,153
  • 5
  • 27
  • 75
0
votes
0 answers

Traefik Unable to get SSL Certificate

I followed this guide https://www.smarthomebeginner.com/traefik-reverse-proxy-tutorial-for-docker/ I started up traefik, but in the logs I'm getting the following error: "Unable to obtain ACME certificate for domains \"mydomain.net\" : unable to…
AliG
  • 1
  • 1
  • 2
0
votes
2 answers

Telegraf tail with grok pattern error

I am using Telegraf to get logs information from Apache NiFi, for this task I am using this config: [[inputs.tail]] ## files to tail. files = ["/var/log/nifi/nifi-app.log"] ## Read file from beginning. from_beginning = true #name_override…
Óscar Andreu
  • 1,630
  • 13
  • 32
0
votes
2 answers

import toml4j in Java fails

I'm trying to import TOML4J into my my maven project. I added this to my dependencies in my POM.xml in the dependencies part: com.moandjiezana.toml toml4j
Cradac
  • 35
  • 7
0
votes
1 answer

Gitlab Runner autoscaling on private server

I'm trying to make Gitlab-ci in autoscaling, but i'm having this error : WARNING: Failed to update executor docker+machine for 0f8e3032 No free machines that can process builds config.toml: concurrent = 1 check_interval = 0 log_level =…
kev.g
  • 361
  • 3
  • 15
0
votes
2 answers

I got the following error while trying to push my Django app to Heroku: TomlDecodeError("Invalid date or number")

When I git push my Django app to Heroku, I get the error below. How do I know what needs to be changed in my code from this error? I'm not sure which date information I misconfigured to raise this error. If you could point me in the right direction,…
juju
  • 884
  • 1
  • 9
  • 31
0
votes
1 answer

What's the use of the [runners.docker] section in config.toml for use case with docker machine?

reading the documentation on autoscaling I can't figure the role of the [runner.docker] section when using docker+machine as executor : [runners.docker] image = "ruby:2.1" # The default image used for builds is 'ruby:2.1' In the…
0
votes
1 answer

How to deserialize two different structures and file formats using toml-rs and serde_derive?

I am using toml-rs and serde_derive to deserialize TOML files my app uses to describe data structures. I have everything working with my first data structure which corresponds to one TOML file definition with obligatory and optional fields. Now I…
Andrew Mackenzie
  • 5,477
  • 5
  • 48
  • 70
0
votes
1 answer

is not a field of struct type hugolib.SiteInfo in

I tried adding a new property to my theme/partials/footer.html template, and adding that property to my /config.toml file, but I keep getting the error: ERROR: 2017/07/09 template: theme/partials/footer.html:16:40: executing…
Joseph Lust
  • 19,340
  • 7
  • 85
  • 83
1 2 3
15
16