Delyan Angelov
74080e8fd5
tests: fix v -W vlib/toml/tests/encode_and_decode_test.v
2025-06-22 13:30:43 +03:00
Delyan Angelov
99be39cbd1
ci: remove the // vtest flaky: true
tags from the remaining tests ( #24379 )
2025-06-19 20:16:49 +03:00
larpon
031fce4361
toml: add compile error when passing encode/1
types of T != struct ( fix #24435 ) ( #24443 )
2025-05-10 11:40:12 +03:00
Alexander Medvednikov
7d57a19d7e
checker: do not allow &u8(0), force nil like we do with &Type(0)
2025-05-03 22:37:51 +03:00
kbkpbot
d9b808cdc3
toml: fix crlf escape check ( fix #24328 ) ( #24329 )
2025-04-26 19:50:32 +03:00
kbkpbot
b87aed84e3
toml: fix handling of multiline string with CRLF ( fix #24321 ) ( #24322 )
2025-04-26 07:59:18 +03:00
Felipe Pena
7d47219808
checker: fix immutable to mutable reference ( fix #22653 ) ( #22663 )
2024-12-10 15:15:26 +02:00
Hitalo Souza
c55a75f412
breaking,time: rewrite parse_rfc3339/1 to improve performance, reject partial timestamps, that miss date info like 22:47:08Z
( #22585 )
2024-10-21 11:24:37 +03:00
yuyi
e97036a25b
v: remove the automatic passing of structs with more than 8 fields by reference (related #17159 ) ( #22547 )
2024-10-17 11:04:23 +03:00
kbkpbot
3c0358cce7
toml: add reflect/decode struct default value support ( #22412 )
2024-10-06 11:15:04 +03:00
yuyi
008aaad999
fmt: remove the prefixed module name of const names, that are in the same module (related #22183 ) ( #22185 )
2024-09-10 11:25:56 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields ( #22025 )
2024-08-11 09:11:24 +03:00
yuyi
19f080ffb8
all: change single blank comment to blank line ( #22016 )
2024-08-09 14:55:58 +03:00
yuyi
79ee4ae046
fmt: fix alignment of enumeration types ( #21999 )
2024-08-07 15:46:50 +03:00
yuyi
ddb6685d8a
fmt: fix and simplify align of struct fields ( #21995 )
2024-08-05 20:23:39 +03:00
tcn
2d43f38bf3
x.json2, toml: add support for Any
in decode_struct
, encode_struct
and to_any
( #21972 )
2024-08-01 15:26:09 +03:00
Felipe Pena
769e9147c3
v: change old attr syntax mention to new one in comments too ( #21860 )
2024-07-14 09:39:37 +03:00
Turiiya
5b9358279a
vlib: simplify byte character conditions by using methods like is_capital, is_lower, is_letter etc ( #21725 )
2024-06-25 09:55:08 +03:00
tcn
c689f801ae
toml: fix @[toml: ]
, support @[skip]
( #21571 )
2024-05-26 09:35:59 +03:00
Turiiya
152cd1c94e
toml: simplify decode_quoted_escapes
( #21472 )
2024-05-08 18:39:49 +03:00
Turiiya
1a35a783f1
breaking,checker: disallow initializing private struct fields outside structs module ( #21183 )
2024-04-12 13:53:02 +03:00
Felipe Pena
625048c5b4
x.json2,checker,toml: allow field.typ compile-time checking with MatchExpr and add array of option checking ( #21171 )
2024-04-04 12:43:59 +03:00
Delyan Angelov
ef48fb60c6
toml: update the alexcrichton and BurntSushi repos to their successors toml-rs, and toml-test, record new exceptions ( #21152 )
2024-04-01 22:03:35 +03:00
Delyan Angelov
f172a040ef
ci: improve test robustness on windows ( #21116 )
2024-03-28 07:29:17 +02:00
Turiiya
f77bb32044
all: fix typos ( #21089 )
2024-03-25 12:18:27 +02:00
Rodrigo Abt
aa002a4019
toml: return an error from toml.parse_file(), when the passed file path does not exist ( #20912 )
2024-02-27 14:22:48 +02:00
Turiiya
d485cceee8
doc: update trim_doc_node_description, make module readmes more uniform ( #20792 )
2024-02-12 12:38:47 +02:00
Alexander Medvednikov
f09826e928
all: unwrap const() blocks
2023-11-25 10:02:51 +03:00
Joe C
757929392e
all: update attributes to use new syntax
2023-11-15 16:16:01 +11:00
Delyan Angelov
2362450340
ci: mark more tests as flaky
2023-11-06 12:23:11 +02:00
Delyan Angelov
0f424b8d54
ci: mark more tests as flaky
2023-11-05 10:21:33 +02:00
Turiiya
e465f7490c
tests: cleanup legacy temp path ( #19716 )
2023-10-31 15:16:19 +02:00
Turiiya
9051ac8921
all: fix typos ( #19634 )
2023-10-23 21:21:15 +03:00
squidink7
12ee3fa86a
toml: add decoding for struct fields of type map[string]T ( #19447 )
2023-09-26 12:53:24 +03:00
Tobias Neitzel
3fb1230cc3
toml: fix toml encoding of complex types ( #19408 )
...
* Improve default toml encoder for complex types
The default toml encoder failed for more complex structs, as certain
edge cases were not covered. This commit attempts to fix this by adding
additional handling for these edge cases.
* Improve map encoding
Since maps currently only support keys that have a string
representation, we can utilize this during map encoding.
* Add test cases for toml encoding
Added test cases for toml encoding of complex nested structs and structs
that contain maps.
* Add additional test cases
2023-09-22 13:00:10 +03:00
Turiiya
4d8b2e9995
toml: fix custom to_toml
for complex structs ( #19338 )
2023-09-13 12:48:14 +03:00
Turiiya
140b5a3e39
toml: implement decode method for Doc
( #19318 )
2023-09-11 06:26:34 +03:00
Turiiya
12dd6e8b39
toml: add comptime check if a supported type (struct) was passed to toml.decode
, when the type has no custom .from_toml
method defined ( #19317 )
2023-09-10 17:32:02 +03:00
Turiiya
1bed0b5e68
toml: add generic automatic decoding and encoding of simple structs, when they don't implement custom methods ( #17970 )
2023-08-15 12:06:57 +03:00
Alexander Medvednikov
428fd7f57f
all: do not allow uninitialized function pointers
2023-08-03 21:06:36 +03:00
Delyan Angelov
466c80f80a
vlib: remove methods deprecated before 2022-07-22 ( #18944 )
2023-07-22 18:11:12 +03:00
Turiiya
af05cfcbbc
toml, semver: minor optimization of conditions ( #18299 )
2023-05-30 14:24:27 +02:00
Turiiya
27e1c20e3d
toml: fix multiline array bool scanner, add test ( #18068 )
2023-04-28 01:30:47 +03:00
Turiiya
bbfa25a17b
toml: fix scanner floating point detection ( #18062 )
2023-04-27 06:43:00 +03:00
Turiiya
8f767c9189
toml: update returns from option to result type ( #18065 )
2023-04-27 06:41:40 +03:00
Turiiya
a84fddbb91
toml: fix trailing comma in inline toml, add test ( #17977 )
2023-04-18 12:35:55 +03:00
Swastik Baranwal
3d99f1f2c2
checker: disallow struct int to ptr outside unsafe ( #17923 )
2023-04-13 07:38:21 +02:00
yuyi
14148f3e52
toml: clean up autocast in parser.v ( #17662 )
2023-03-18 23:15:00 +03:00
Ahmad Yasser
cad2cd5583
docs: fix typos using codespell ( #17332 )
2023-02-16 11:43:39 +02:00
ChAoS_UnItY
404a9aa442
v: forbid function parameter names, shadowing imported module names ( #17210 )
2023-02-08 20:37:04 +02:00