Commit graph

84 commits

Author SHA1 Message Date
LoveSy
42a4aa941b
Add unicode feature to switch between regex and regex-lite dep 2024-07-26 13:18:22 +08:00
Adam Crume
0335bfb733 Bump to version 2.0.0 2023-05-20 20:25:43 -07:00
Adam Crume
f71c7d472f Fix lints 2023-05-19 21:03:55 -07:00
Adam Crume
275bc3e40e Enable extra compiler checks 2023-05-19 21:00:03 -07:00
Adam Crume
2a61e66c01 Add git pre-commit hook and format the code 2023-05-19 20:56:49 -07:00
Adam Crume
1fbcd1e8fd Use a single decoder for the entire input stream
Calling `Encoding::decode` multiple times for parts of the stream could cause problems with certain encodings (e.g. ones that use byte order marks).  Also moves EOL detection after decoding in case the encoding used doesn't line up with ASCII for line ending characters.
2023-05-18 20:53:32 -07:00
Adam Crume
1a6c1d4453 Switch from encoding to encoding_rs 2023-05-17 20:14:58 -07:00
Adam Crume
fb2473e264 Bump to version 1.4.1 2022-03-09 19:21:40 -08:00
Adam Crume
2f0b33ba5c
Merge pull request #6 from Dylan-DPC/patch-1
Update regex
2022-03-09 19:20:22 -08:00
Dylan DPC
02f2aa52e6
Update Cargo.toml 2022-03-09 08:02:53 +01:00
Adam Crume
002c8e5bd1 Bump to version 1.4.0 2021-07-09 16:12:36 -07:00
Adam Crume
b073d8d7e1 Fix Clippy lints 2021-07-05 11:44:44 -07:00
Adam Crume
71045916ab
Merge pull request #4 from kenkoooo/fix/send_sync
fix: Add Send and Sync to the error type
2021-07-05 10:12:30 -07:00
kenkoooo
a8caf21e72 fix: Add Send and Sync to the error type 2021-07-02 15:39:47 +09:00
Adam Crume
9514702c2f Bump to version 1.3.0 2020-10-25 15:01:21 -07:00
Adam Crume
b15259cc62 Add support for different encoding when writing 2020-10-25 14:59:23 -07:00
Adam Crume
0f674b84fd Clean up code 2020-10-25 14:59:23 -07:00
Adam Crume
bd07b61acf Implement Error::source for PropertiesError 2020-10-25 14:29:58 -07:00
Adam Crume
213423872a Bump to version 1.2.0 2019-02-23 19:24:28 -08:00
Adam Crume
e4d80ab901 Upgrade to 2018 edition 2019-02-23 19:22:41 -08:00
Adam Crume
59d3df3542 Derive Hash and Clone where appropriate 2019-02-23 19:03:30 -08:00
Adam Crume
bc420892fe
Merge pull request #2 from mitsuhiko/feature/update-deps
Update regex dependency
2019-02-23 18:56:35 -08:00
Armin Ronacher
f2e1d79ff3 Update regex dependency 2019-02-22 13:56:15 +01:00
Adam Crume
5e09afbe7b Bump to version 1.1.1 2018-03-31 15:50:13 -07:00
Adam Crume
a0874d8226 Fix trailing whitespace bug and add tests 2017-09-07 20:36:27 -07:00
Adam Crume
31c854b710 Use simple example in README.md 2017-09-07 18:00:28 -07:00
Adam Crume
f90ff1d60e Change example to use ? instead of try! 2017-05-02 20:40:56 -07:00
Adam Crume
b480a39679 Bump to version 1.1.0 2017-05-02 20:31:53 -07:00
Adam Crume
0598734f5a Update dependency versions 2017-05-02 20:31:34 -07:00
Adam Crume
f469bca51f Propagate errors from encoding 2017-05-02 20:14:05 -07:00
Adam Crume
5596cdbb1c Merge pull request #1 from squidpickles/master
Added support for different character encodings on read
2017-05-02 19:49:00 -07:00
Kevin Rauwolf
41bea1a3d3 Use 'static lifetime for Encoding reference 2017-05-01 20:18:27 -07:00
Kevin Rauwolf
ef3ea6ab0b Added note about encoding and Java spec to new_with_encoding 2017-04-25 10:30:10 -07:00
Kevin Rauwolf
4a1b62053e Decode now takes &[u8], per @adamcrume's suggestion 2017-04-25 10:12:06 -07:00
Kevin Rauwolf
567f1fe534 Added support for different character encodings on read 2017-04-20 23:17:30 -07:00
Adam Crume
c7e726ebc2 Update version to 1.0.0 2016-10-08 20:56:59 -07:00
Adam Crume
27d3cd2473 Add convenience read and write functions 2016-10-08 20:31:20 -07:00
Adam Crume
e115c892bb Add documentation link to Cargo.toml 2016-10-08 18:53:16 -07:00
Adam Crume
333d2234ab Implement common traits 2016-10-06 21:12:32 -07:00
Adam Crume
1ed42c446e Add comments to LineEnding 2016-10-06 19:33:45 -07:00
Adam Crume
782a6b905c Fix escaping hashes and exclamation marks 2016-10-05 20:16:33 -07:00
Adam Crume
2838bb10df Update version to 0.2.0 2016-04-07 22:06:43 -07:00
Adam Crume
1f233d59fb Support custom line endings 2016-04-07 21:47:09 -07:00
Adam Crume
cb86cd59e1 Support custom key/value separators 2016-04-07 21:30:59 -07:00
Adam Crume
b90d176073 Support custom comment prefixes 2016-04-07 21:14:18 -07:00
Adam Crume
fbfc0a87d9 Set Emacs indent settings 2016-04-07 20:46:24 -07:00
Adam Crume
8ea23e6363 Fix whitespace settings in .gitattributes 2016-04-07 20:38:01 -07:00
Adam Crume
0a0d679447 Use more flexible dependency versions 2016-02-05 18:34:47 -08:00
Adam Crume
e677e6f6ab Add metadata 2016-01-28 19:33:14 -08:00
Adam Crume
9b202ca8ec Add README.md 2016-01-28 18:46:14 -08:00