5f909c01d9
Implement library
...
This is a combination of several refactorings and re-thinkings of the
whole library and I think there is not much value in providing the whole
history there.
So this is just a "dump code in" commit.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2017-06-26 17:32:41 +02:00
0033d1b4b4
Add documentation file
2017-06-21 18:29:49 +02:00
a7c9c39af5
Initial import of libimagtimetrack
2017-06-21 18:29:49 +02:00
b47972bedd
Merge pull request #976 from matthiasbeyer/imag-store-dump
...
Imag store dump
2017-06-21 18:29:21 +02:00
22a4dc0929
Merge pull request #955 from matthiasbeyer/libimagrt/cleanup
...
libimagrt: cleanup
2017-06-21 18:28:30 +02:00
c9d03fc3c2
Merge pull request #980 from matthiasbeyer/update-travis
...
Build with rust stable/beta/nightly
2017-06-21 11:36:18 +02:00
895065f05f
Remove unused macro import
2017-06-21 10:08:35 +02:00
992bba86d9
Remove unused macro import
2017-06-21 10:08:35 +02:00
87cab6dbb9
Remove unused dependency: lazy_static
2017-06-21 10:08:34 +02:00
2355de6d2e
Remove unused dependency
2017-06-21 10:02:45 +02:00
e9cec1505b
Remove unneeded dependency
2017-06-21 10:01:40 +02:00
01fb556204
Remove unneeded macro import
2017-06-21 10:00:17 +02:00
4ab81275ca
Remove unneeded [macro_use]
2017-06-21 09:58:47 +02:00
bc75e96b64
Build with rust stable/beta/nightly
...
I don't remember why we disabled this, actually.
2017-06-21 09:55:36 +02:00
e7c53d84ca
Minify map/filter_map
2017-06-21 08:36:30 +02:00
fe7bde3882
Minify mapping with dependency: is-match = 0.1
2017-06-21 08:34:44 +02:00
e35d78fedb
Minify mapping
2017-06-21 08:34:44 +02:00
eff4f547ba
Minify mapping
2017-06-21 08:34:44 +02:00
e5fa71d1e7
Minify mapping
2017-06-21 08:34:44 +02:00
1e06b90eea
Try to remove annotation
...
...which was necessary some time ago
2017-06-21 08:34:44 +02:00
0f47c4afc7
Minify match
2017-06-21 08:34:44 +02:00
d3d6e830d7
Print error while panicing
2017-06-21 08:34:44 +02:00
c8bbe33513
Use stdout backend, not stdio backend
2017-06-21 08:34:22 +02:00
403965d912
Implement dumping
2017-06-21 08:34:22 +02:00
c6e9a0a4a4
Add dump() stub
2017-06-21 08:34:14 +02:00
35fd0f2b9c
Add clap subcommand for dumping
2017-06-21 08:34:14 +02:00
2b7706424a
Merge pull request #977 from matthiasbeyer/libimagrt/fixes
...
Libimagrt/fixes
2017-06-21 08:33:25 +02:00
17bab5b0b9
Merge pull request #978 from matthiasbeyer/libimagstore/fixes
...
Libimagstore/fixes
2017-06-21 08:33:18 +02:00
14f261a84e
Add some debug output to JSON mapper
2017-06-20 20:57:53 +02:00
699f4083e9
Add Runtime::store_backend_to_stdout(), make _stdio() variant use stdin properly
2017-06-20 20:57:40 +02:00
e7e3a75924
Add another JSON test for an empty JSON
2017-06-20 20:57:25 +02:00
2790042f6f
Propagate parsing errors
...
This somehow resolved another error as well, where the toml parser
reported an error for the parsed file, despite beeing one in the file.
I don't know how this commit fixed this, but it scares the shit out of
me.
2017-06-20 20:34:47 +02:00
801622ecf2
Add output where paths is set
2017-06-20 20:34:27 +02:00
de3b244a62
Bugfix: Use StoreId::from_full_path()
...
The rationale is that the walker implementation yields the complete path
rather than the local part.
This patch fixes this issue by using StoreId::from_full_path() rather
than StoreId::new().
2017-06-20 20:33:58 +02:00
cac3e6114e
Add debug output to Walk::next() impl
2017-06-20 20:33:54 +02:00
54484a6ee7
Add debug output to StoreId::new_baseless()
2017-06-20 20:33:50 +02:00
2c97d6f194
Merge pull request #974 from matthiasbeyer/libimagstore/embellishments
...
Remove unnecessary clone() call
2017-06-18 20:03:29 +02:00
f8ed6794c2
Merge pull request #975 from matthiasbeyer/libimagstore/backend-replacement
...
Libimagstore/backend replacement
2017-06-18 19:44:32 +02:00
a672e4db21
Remove TODO from Store::reset_backend()
2017-06-18 19:33:52 +02:00
d33b435031
Merge pull request #922 from matthiasbeyer/libimagstore/all-entries
...
Add Store::entries()
2017-06-18 19:17:58 +02:00
bee97c8758
Add Store::entries()
2017-06-18 19:07:15 +02:00
a4188a3100
Add proper impl of Store::reset_backend()
2017-06-18 18:52:27 +02:00
c814171875
Add backend draining
2017-06-18 18:52:21 +02:00
b572e7e8b9
Abstract away the output of the IO backend
...
This patch refactors the output part of the IO backend into an own
backend which is simply used by the IO-backend.
This way we can have a pure-output backend.
2017-06-18 18:52:03 +02:00
caf77012d9
Add tests to test backend replacing
2017-06-18 18:51:58 +02:00
41f3b10976
Add Runtime::store_backend_to_stdio() function
2017-06-18 13:37:50 +02:00
c0936a0273
Add Store::reset_backend() function for re-setting the backend
2017-06-18 13:37:50 +02:00
97741fd4ee
Remove unnecessary clone() call
2017-06-18 13:37:35 +02:00
e75c37fbb2
Merge pull request #973 from matthiasbeyer/libimagstore/io-backend-knows-format
...
Libimagstore/io backend knows format
2017-06-18 12:47:07 +02:00
266311d743
Change backends to do less ser-/deserialization
...
This commit changes the backends to do less de/ser, as it now stores the
Entry objects in the backend and does the de/serialization there.
This means the store does only serialize things once from json to toml
in the io backend.
See the diff of the documentation for more details.
2017-06-18 12:32:04 +02:00