Lukas Wirth
8ff72bbfec
Add some missing smol_str API pieces
2026-03-06 09:55:44 +01:00
Alexander Kjäll
f9ca8b23d8
gate borsh tests on std also, as they depend on both
2026-02-15 10:28:47 +01:00
Lukas Wirth
51e915cff1
Reformat
2025-11-15 09:16:57 +02:00
Alex Butler
a2b3d25dbf
Optimise replacen_smolstr for single ascii replace
2025-10-22 14:29:46 +01:00
Alex Butler
3e6863eeb1
Fix lints
2025-09-14 12:34:12 +01:00
Lukas Wirth
037436ef16
Fix SmoLStrBuilder pushing null bytes on heap spill
2024-10-23 22:56:02 +02:00
Lukas Wirth
6216c05690
SmolStrBuilder::push
2024-09-03 09:28:34 +02:00
Corvin Paul
bf431789d3
Add support for borsh
2024-09-03 09:19:17 +02:00
Lukas Wirth
aa63570498
Expose SmolStrBuilder
2024-09-03 09:14:56 +02:00
Lukas Wirth
6b0d9ffdb5
Various cleanups
2024-09-03 07:51:17 +02:00
Lukas Wirth
7cb89f14c6
Publish 0.2.2
2024-05-14 10:15:12 +02:00
Alex Butler
860343ab85
Add StrExt::replace_smolstr, replacen_smolstr
2024-04-18 10:08:01 +02:00
Alex Butler
79bb5e39b5
Add StrExt, to_lowercase_smolstr & friends
2024-02-08 14:43:17 +01:00
novacrazy
39257f6b05
Add Writer and ToSmolStr
2024-01-16 09:18:52 +01:00
Scott Driggers
ced7e87db1
Implementing From<Arc<str>> for SmolStr and From<SmolStr> for Arc<str>
...
Also adding one test to verify
2023-08-25 09:39:14 -04:00
austaras
5f367d76ae
Update test
2023-02-05 08:15:53 +08:00
austaras
c5a4d2475e
One more byte for inlined
2023-01-23 18:06:21 +08:00
bors[bot]
0b808e8a37
Merge rust-analyzer/smol_str#18
...
18: Add fmt tidy test r=Veykril a=Atul9
Co-authored-by: Atul Bhosale <atul1bhosale@gmail.com >
2022-04-03 14:06:06 +00:00
Zachary Dremann
77c6c2b2ae
Use ASCII to get the "too big" char iterator
...
Additionally, make the construction of the string mechanical
2022-03-10 19:29:45 -05:00
Zachary Dremann
a1cbd1feee
Add a new test for bad size hint
...
Changes in PR rust-analyzer/smol_str#20 allow for an incorrect size hint to create a
non-canonical SmolStr. Add a new test which will fail if we ever rely on
SmolStrs to be canonical when comparing for equality.
2022-03-10 19:29:45 -05:00
Aleksey Kladov
e412a0199f
⬆️ proptest
2020-09-20 09:49:57 +02:00
Aleksey Kladov
d40b0bc1b5
Add new_inline const-fn constructor
2020-09-20 09:45:06 +02:00
Atul Bhosale
667c63685d
Add fmt tidy test
2020-07-07 21:17:33 +05:30
Zachary Dremann
1235f1c11a
Rustfmt
2020-07-06 13:12:41 -04:00
Brendan Molloy
6e6b205998
Implement visitor
2019-09-26 10:36:46 +02:00
Brendan Molloy
1bb2d0f36c
Demonstrate bug with serde from_reader
2019-09-25 14:46:30 +02:00
Pascal Hertleif
a390271aec
new_inline_from_ascii: Docs and compile-fail tests
2019-07-22 13:28:12 +02:00
Aleksey Kladov
e717be12fb
add cosnt-fn ctor
2019-07-07 14:00:10 +03:00
Pascal Hertleif
3b30f08b61
Explicitly test for heap allocation, too
2019-05-26 14:17:07 +02:00
Pascal Hertleif
4f603f4f5d
Add FromIterator with &str/&String/String items
2019-05-25 17:39:32 +02:00
Kevin Stenerson
a3eb0a1e9b
Implement FromIterator<char> for SmolStr
2019-04-23 14:02:20 -06:00
Evgeniy A. Dushistov
28c8d02439
implement Borrow<str> to make possible search str in HashMap<SmolStr
2019-03-10 04:27:42 +03:00
Aleksey Kladov
373ca5eda7
add From<SmolStr> for String
2018-12-21 14:16:23 +03:00
Bruce Mitchener
5076180f77
clippy: Add (and test) is_empty method.
...
Since there is a `len` method, clippy suggests having an `is_empty`
method as well.
2018-10-12 22:16:58 +07:00
Bruce Mitchener
ea731a9259
Fix test compilation without serde feature.
2018-10-12 21:25:25 +07:00
Bruce Mitchener
c8ac40fcd8
rustfmt with stable.
2018-10-12 21:18:49 +07:00
Aleksey Kladov
47569f04e6
add len method
2018-09-03 21:47:04 +03:00
Aleksey Kladov
2fc58bd51c
serde
2018-09-02 14:01:46 +03:00
Aleksey Kladov
8968255608
initial
2018-08-16 23:32:49 +03:00