18230 Commits

Author SHA1 Message Date
Kim Shrier
423f804b07
crypto.scrypt: add a new scrypt module to vlib/crypto (#22216) 2024-09-14 09:54:04 +03:00
Alexander Medvednikov
26ab7d4fe1 veb: implicit context 2024-09-14 00:41:02 +03:00
yuyi
cc7665ff32
tests: add a test for short enum syntax across modules (related #12183) (#22210) 2024-09-13 17:07:01 +03:00
yuyi
277e5eb253
fmt: add a test for fn with c binding type args (#22212) 2024-09-13 17:06:15 +03:00
Laurent Cheylus
888d84d26d
docs: add implements keyword for explicit interface implementations (#22214) 2024-09-13 16:59:38 +03:00
Delyan Angelov
56013a443a
crypto.pbkdf2: move extensive test cases to https://github.com/vlang/slower_tests, but keep test case 7, where the key_size is > block_size for sha224 and sha256 2024-09-13 10:50:55 +03:00
Delyan Angelov
b49e79680b
crypto, x.crypto: trim long inputs, move more extensive cases to https://github.com/vlang/slower_tests 2024-09-13 10:28:11 +03:00
yuyi
637ce20a26
fmt: fix import selective with interface implements (fix formatting part of #22200) (#22209) 2024-09-13 09:59:41 +03:00
Delyan Angelov
747f3b3c4c
crypto.bcrypt: reduce runtime cost for running bcrypt_test.v, by reducing the iteration count 2024-09-13 09:45:21 +03:00
Delyan Angelov
b656481f62
ci: cleanup *.svg.xz files in release_ci.yml 2024-09-13 09:27:51 +03:00
Delyan Angelov
0b76a0ca19
crypto.ed25519: simplify ed25519_test.v, move more extensive tests to https://github.com/vlang/slower_tests 2024-09-13 09:23:00 +03:00
Delyan Angelov
a11a48e877
compress GC_Ryzen_3800X_Linux.svg and Resources_Ryzen_3800X_Linux.svg with xz 2024-09-13 09:06:06 +03:00
Delyan Angelov
73bdcd378c
checker: fix compilation of vlib/v/slow_tests/assembly/asm_test.amd64.v (regression after dfc0c91) 2024-09-13 08:36:44 +03:00
yuyi
4572c64759
cgen: fix match with mut cond variable (#22207) 2024-09-13 08:20:06 +03:00
yuyi
6eae77b61e
builtin: fix string.trim() (fix #13021) (#22205) 2024-09-13 07:27:40 +03:00
Kim Shrier
5cf4b5ed4f
crypto.sha512: move sha512 long message tests to separate repo (#22208) 2024-09-13 07:19:55 +03:00
Kim Shrier
e0422de8bd
crypto.pbkdf2: fix pbkdf2 key generation and add more tests (#22202) 2024-09-12 11:48:03 +03:00
Delyan Angelov
efe709eb34
ci: run npx prettier --write **.yml; ensure it is run on all .yml files, not just the ones in the .github/workflows/ folder 2024-09-12 11:43:03 +03:00
Delyan Angelov
efff766665
ci: fix formatting of more_extensive_but_slower_tests_ci.yml, explain what to do to run the checks in workflow_lint.yml locally 2024-09-12 11:34:51 +03:00
Delyan Angelov
328c2a23a4
ci: fix more_extensive_but_slower_tests_ci.yml on windows 2024-09-12 11:25:57 +03:00
Delyan Angelov
b2e8b2d168
ci: add .github/workflows/more_extensive_but_slower_tests_ci.yml, that will run tests from https://github.com/vlang/hash_validation_tests 2024-09-12 11:19:34 +03:00
Delyan Angelov
79bedff176
thirdparty: update zip to its latest commit 209840b from https://github.com/kuba--/zip/ (miniz is now version 3.0.2) (#22199) 2024-09-11 20:12:23 +03:00
Delyan Angelov
715dc31161
tools: fix v doc not converting <s> in plain code blocks into encoded html entities in its .html output 2024-09-11 19:42:44 +03:00
yuyi
1c992de86d
cgen: fix array of fns index call with embeded array index (fix #17381) (#22198) 2024-09-11 19:33:48 +03:00
Delyan Angelov
62ab1be572
v.util: add get_build_time/0, supporting https://reproducible-builds.org/docs/source-date-epoch/ 2024-09-11 15:47:51 +03:00
Delyan Angelov
6e13b02328
crypto.sha1, crypto.sha256, crypto.sha3, crypto.sha512: improve performance for non prod builds, by tagging the block_generic functions with @[direct_array_access] 2024-09-11 14:50:39 +03:00
Swastik Baranwal
3ee27320ff
checker: restrict multiple union fields initialised at once with a nicer checker error, instead of producing an enigmatic error at cgen time (#22196) 2024-09-11 12:25:59 +03:00
Ivan Vatlin
6aeef5e4db
encoding.binary: add u16/u32/u64 -> []u8 conversion functions (#22193) 2024-09-10 20:22:34 +03:00
Felipe Pena
33ff7c136b
parser, checker: fix array alias (#22175) 2024-09-10 17:24:48 +03:00
Delyan Angelov
f890566199
db.sqlite: add instructions for installing SQLite's amalgamation or development package, if it is missing 2024-09-10 17:20:29 +03:00
larpon
d27ab09cdf
flag: add a relaxed parsing mode, that turn flag match errors into no_match entries instead (#22191) 2024-09-10 17:04:40 +03:00
yuyi
dd2210abf6
ast: fix const field str() (#22192) 2024-09-10 17:02:51 +03:00
Kim Shrier
86fe9456a5
crypto.sha1, crypto.sha256, crypto.sha512: add Secure Hash Algorithm Validation System tests (#22187) 2024-09-10 13:07:34 +03:00
yuyi
dd3e3e110b
fmt: change manualfree_keep.v to manaulfree_keep.vv (#22190) 2024-09-10 11:28:34 +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
Delyan Angelov
234fb8e2b0
transformer: add support for instrumenting the V compiler with -d trace_transformer 2024-09-09 22:42:22 +03:00
Martin Skou
f002fd4493
net.mbedtls: store the client ip (for ipv4), shutdown on handshake failure, in .accept() (#22184) 2024-09-09 18:55:28 +03:00
Delyan Angelov
6528efa405
builtin: remove string interpolation from panic/1, to be able to use tools like cbmc in more cases (#22182) 2024-09-09 07:45:23 +03:00
Alexander Medvednikov
ac6ca5f858 all: make implements work with multiple interfaces 2024-09-09 05:03:27 +03:00
yuyi
3300e59a0f
parser: fix parsing map value inside or expr (fix #12164) (#22180) 2024-09-08 12:15:10 +03:00
Kim Shrier
747f50f028
builtin: remove remaining references to v_calloc in function comments (#22179) 2024-09-08 12:10:33 +03:00
Kim Shrier
7d23ff7386
veb: fix a few minor errors in the README.md (#22177) 2024-09-08 12:07:49 +03:00
Delyan Angelov
89e5279349
gg: change the type of PenConfig.thickness to f32 2024-09-08 12:05:04 +03:00
Delyan Angelov
b8c649b62a
builtin: small cleanup in array.free() (make debugging easier) (#22173) 2024-09-07 18:22:16 +03:00
larpon
625e4df49a
flag, tests: inline a few consts (#22174) 2024-09-07 18:21:03 +03:00
larpon
620e064110
flag: fix parsing flag.FlagParser style short flags in to_struct[T] (#22172) 2024-09-07 14:57:15 +03:00
Delyan Angelov
3e7f8edb34
docs: add more details to the newly added -compress section 2024-09-07 09:05:57 +03:00
Kim Shrier
0158b54b7b
veb: fix vweb_livereload reference to veb_livereload (#22171) 2024-09-07 08:46:21 +03:00
Carlos Esquerdo Bernat
61609454d6
docs: add a section for the -compress flag (#22169) 2024-09-06 20:02:58 +03:00
yuyi
023fd9234d
cgen: fix struct field with default optional value (fix #11119) (#22167) 2024-09-06 19:54:14 +03:00