issues Search Results · repo:kdl-org/kdl-rs language:Rust
Filter by
74 results
(77 ms)74 results
inkdl-org/kdl-rs (press backspace or delete to remove)How can I reliably get the span of the actual property value.
I can rely on the following
- entry.span() - for the whole property span
- entry.ty().unwrap().span() - for the type annotation of the ...
enhancement
good first issue
help wanted
ggallovalle
- 2
- Opened on Sep 21
- #141
Kdl-rs preserves comments by keeping track of the format.
I ve just converted a previously yaml testcase to KDL:
device Device {
default-byte-order LE
register-address-type u8
/// \\\\\\/\/\/\////\/\/;{} ...
diondokter
- 2
- Opened on Aug 24
- #136
Suggestions:
- Instead of storing KdlValue::Float as f64, store it as String
- Instead of storing KdlValue::Integer as i128, store it as { repr: String, radix: u32 } where the radix can only be
...
nik-rev
- 1
- Opened on Aug 20
- #135
I got bugged by the lack of error report highlighting and dug into this a bit.
First I got highlighting going with my own diagnostics from mapping into a config shape, which meant digging into the
highlighting ...
simonbuchan
- 4
- Opened on Aug 20
- #134
KdlDocument is internally a Vec KdlNode . I wanted to find out how many KdlNodes there are so I did kdl_document.len()
And then, I actually looked at the definition of the .len() method:
/// Length of ...
nik-rev
- 1
- Opened on Aug 15
- #133
Here s some test code:
use kdl::{KdlDocument, KdlNode};
#[test]
fn keywords() - miette::Result () {
let mut node = KdlNode::new( null );
node.insert( inf , -inf );
node.push( nan );
...
sodiboo
- Opened on Jul 26
- #132
Here s some test code:
use kdl::KdlDocument;
use miette::Context;
#[test]
fn long_int_v1() - miette::Result () {
let mut str = String::from( - );
for i in 1..1000 {
str += 1 ;
...
sodiboo
- Opened on Jul 26
- #131
I want to create a numeric KDL entry with arbitrary precision (converting to KDL), like so:
let mut entry = KdlEntry::new(KdlValue::Float(0.0));
entry.set_format(KdlEntryFormat {
value_repr: some_potentially_really_long_numeric_string, ...
sodiboo
- Opened on Jul 26
- #130
From what I can tell, I think we can put all miette support behind a feature flag, allowing the crate to be used with 1
less required dependency. I m happy to send a PR when I have more time if this idea ...
QnnOkabayashi
- Opened on Jun 10
- #128
When constructing a KdlEntry with a string value (regardless of whether or not that string contains a new-line), it is
unclear to me as the caller how to tell the entry s format to use a single line vs ...
temportalflux
- 4
- Opened on Mar 8
- #121

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.