Questions tagged [toml]
TOML is a language designed for configuring software
toml
271
questions
1
vote
1
answer
24
views
How does toml.TomlPreserveInlineDictEncoder() work?
I had a look on the toml library source code and I think I understand that this encoder should format dictionaries in one line instead of classic dictionary toml format.
My expected behavior is the ...
0
votes
0
answers
23
views
Alacritty: How to deal with multiple configurations?
I'm surprised I didn't find the answer to this question already, as I feel it must certainly be a very common problem.
I want to use different sets of settings for the different machines I use (and ...
1
vote
1
answer
63
views
What is the difference between using "module" versus "group" and "name" in toml files (gradle catalog)?
I'm migrating my Android project to gradle catalog, for a better management of dependencies. Documentation doesn't make it very clear, or I've missed something, but what is the difference between ...
0
votes
0
answers
10
views
With flit exclude all files except 1
With flit, how do I exclude all files of a certain type, except one?
I am attempting to exclude all .md files except for README.md, based on how it works with .gitignore:
[tool.flit.sdist]
include = [&...
0
votes
1
answer
84
views
missing field error during deserialization for toml file in rust
I am trying to read the config toml file into a config struct defined locally and I was given this basic error however I wasn't able to see what I have actually missed. I am using the 3rd party crate ...
0
votes
1
answer
61
views
How to include .env file in my python package using pyproject.toml?
I have the following folder structure:
program_root/
- src/
- tests/
- data/
- templates/
- docs/
- build/
- dist/
- ...
0
votes
1
answer
62
views
Rust TOML reading table and key-value in order
How to read TOML in order?
I have this code:
let toml_content: Value = contents.parse::<toml::Value>().unwrap();
for key in toml_content.as_table().unwrap().keys() {
println!("{:?}&...
0
votes
0
answers
91
views
Warp terminal emulator not displaying starship prompt colors correctly
I have recently moved from iTerm2 to Warp. However, when I set up starship the colors of the nerd font icons that make up the prompt "blend" into each other. This doesn't happen on iTerm.
(I'...
0
votes
0
answers
28
views
Android Hilt Plugin exception
I have hilt plugin implemented but Gradle is throwing exception and I cant get it work in this project. Its working fine in my other project where its implemented same way.
libs.versions.toml
[plugins]...
0
votes
0
answers
53
views
Python 3.12.3 Quart Hypercorn doesn't run / configure properly through programmtically loading .toml file
I tried to load .toml config file programmatically but it doesn't work:
from hypercorn.config import Config
config = Config()
config.from_toml("/etc/pythonrestapi.toml")
asyncio.run(serve(...
0
votes
1
answer
189
views
Additional properties are not allowed ('tool' was unexpected)Even Better TOML
when I add a file pdm.toml for python 3 project,
[pypi]
verify_ssl = true
# https://github.com/pdm-project/pdm/discussions/2406
[tool.pdm.resolution]
respect-source-order = true
[[tool.pdm.source]]
...
0
votes
2
answers
192
views
Plugins dependencies without version (Migration version catalogs)
I started migrating my project to use the new version catalogs, and plugins without version give an error saying that version is needed.
How do I add the plugin below to the toml file since there is ...
-1
votes
1
answer
88
views
How to add plugins with exact version to New Android Studio Iguana or above in libs.versions.toml
I am attempting to create a Juspay demo, but I'm encountering an issue while adding dependencies to my project. This is because the Juspay Integration Guide still contains demo code using an outdated ...
0
votes
0
answers
253
views
Read version from local properties file and set in libs.versions.toml file in Android
I'm using the libs.versions.toml file in Android for version catalogs as described here. I have a properties file in my project which contains the version for a library which I'm using as a dependency....
2
votes
1
answer
82
views
Serialize toml ArrayOfTables using InlineTables
I have as struct that looks like this:
#[derive(Serialize, Deserialize)]
pub struct TestItem {
pub a: String,
pub b: String,
}
#[derive(Serialize, Deserialize)]
pub struct Test {
pub ...