Commit graph

85 commits

Author SHA1 Message Date
da01875e9f Fix libimagref for toml 0.4 2017-05-03 20:27:21 +02:00
585b5ffad6 dependency: toml: 0.2.* -> 0.4.* 2017-05-03 17:46:37 +02:00
f22bcf0c74 Remove unused variable "file" 2017-02-05 15:01:46 +01:00
f1c1a1f9be Eliminate EntryHeader type
Therefor introduce the "Header" trait which is implemented on Value for
backwards compatibility.

Make the default_header() function publicly available as
Entry::default_header()
2017-02-05 13:10:38 +01:00
c959c1ed27 Remove unused macro_use import 2017-02-04 11:18:58 +01:00
mario
8df5519f34 Move [profile.dev] codegen-units = 2 to top-level Cargo.toml
lower level (=package/crate level) definitions for profiles are ignored
2017-01-19 20:08:51 +01:00
6aebdb90e0 Update dependencies 2016-11-30 09:36:45 +01:00
35d93ecdd5 Remove unused variable 2016-11-01 16:39:46 +01:00
0a04081599 Merge pull request #656 from matthiasbeyer/cargo-rustc-codegen-units
Cargo rustc codegen units
2016-10-31 23:39:38 +01:00
b4ab666ce7 libimagref/Cargo.toml: Update dependencies 2016-10-24 14:30:54 +02:00
14aeb2ee1b Add codegen-units = 2 in ./libimagref/Cargo.toml 2016-10-24 13:51:04 +02:00
7a5134ead2 Resolve TODO: Ref::get_path_hash() should return Result<String> 2016-10-20 18:30:44 +02:00
b5bfc1978c Fix: Cargo.toml does not know "website", but "homepage" 2016-10-20 14:14:18 +02:00
07119e76ac Add meta-info in libimagref/Cargo.toml 2016-10-18 10:56:12 +02:00
1d3666eef4 Merge pull request #657 from matthiasbeyer/libimagmail/init
Libimagmail/init
2016-10-14 11:00:44 +02:00
e8ae4c0da7 Create symlinks to documentation files in libimag*/README.md 2016-10-13 12:04:36 +02:00
e30d774670 Move all libimag*/README.md to doc/src/05100-* 2016-10-13 12:04:36 +02:00
eec6ef0652 Add agnostic "RefHashingError"
to be used by implementors of Hasher.
2016-10-12 19:17:40 +02:00
d2b4b523c4 Remove unused imports 2016-10-11 18:35:34 +02:00
0a069a401b Remove unused variable 2016-10-08 00:53:52 +02:00
47ca51b895 Remove unused variable 2016-10-08 00:53:44 +02:00
18f575ebe5 Remove unused function 2016-10-08 00:53:29 +02:00
b08b53b056 libimagref: Add copyright notice to all files 2016-10-01 17:35:06 +02:00
a6377f322e Fix Ref::get_path_hash() to use ::into_pathbuf() 2016-09-06 15:31:55 +02:00
55846168dc Add variant of Ref::get_stored_hash() to get stored hash with custom hasher 2016-09-05 16:15:40 +02:00
5399b8ca7b Add variant of Ref::update_ref() to update with custom Hasher instance 2016-09-05 16:15:40 +02:00
a6ca041903 Fix Ref::get_stored_hash() for reading the right header field 2016-09-05 16:15:40 +02:00
8a3d4fc0b2 Fix Ref::update_ref() to set the appropriate header field 2016-09-05 16:15:40 +02:00
6a1ffe059b This patch puts the hasher name in the header
This was a bug, as the previous implementation simply sets the hash, but
we need to set the hash in a place where we can re-find it with a
hasher.
2016-09-05 16:15:40 +02:00
82f08c6021 Remove version argument from module_entry_path_mod!() macro 2016-08-30 11:40:56 +02:00
0ebbdaa797 Fix libimagref::reference::* for new StoreId interface 2016-08-28 18:41:55 +02:00
fc53d9a401 Add README.md for libimagref 2016-08-24 14:22:20 +02:00
39bb36f023 Use UTF8Error in default hasher impl 2016-08-23 12:46:02 +02:00
70c015f73d Add NBytesHasher custom hasher 2016-08-23 12:46:02 +02:00
c7ef422cbe Add generic UTF8Error error kind 2016-08-23 12:46:02 +02:00
52d907e67c Move Ref implementation to use DefaultHasher 2016-08-23 12:46:02 +02:00
78ce9059fd Add hasher module 2016-08-23 12:46:01 +02:00
Kai Sickeler
095291b299 Upgrade toml dependency to 0.2 2016-08-06 17:14:29 +02:00
Gavin Thomas Claugus
2ccea914dd libimagref: Deny warnings and fix denied warnings
Signed-off-by: Gavin Thomas Claugus <gclaugus@gmail.com>
2016-07-26 16:34:22 -04:00
cb4840cce4 Merge pull request #497 from matthiasbeyer/libimagref/list
libimagref/list
2016-07-16 01:25:28 +02:00
cdf90e427c Fix: Header field name was wrong 2016-07-14 20:42:39 +02:00
900513594c Impl Into<FileLockEntry> on Ref type 2016-07-14 20:37:49 +02:00
637917f8cb Add lister for libimagref to list references 2016-07-14 20:26:22 +02:00
538e983686 Add RefToDisplayError kind 2016-07-14 20:26:22 +02:00
d22b7583ce Add dependency: libimagentrylist 2016-07-14 19:54:55 +02:00
9337a14cdd Update all version strings: 0.1.0 -> 0.2.0 2016-07-12 11:51:20 +02:00
55c39ac94d Fix: We cannot offer a Ref::delete(self), but a Ref::delete_by_hash()
We cannot offer the former because deleting self would always fail as
the FileLockEntry is already borrowed from the store, so the store
declines this.

But deleting by hash works.
2016-07-05 12:42:52 +02:00
a29242c586 Impl Display for Ref 2016-07-04 20:18:52 +02:00
ebf185fd29 Add Ref::from_filelockentry() 2016-07-04 19:29:02 +02:00
617cb97ddf Add Ref::get_path_hash() 2016-07-04 19:29:02 +02:00