-
Notifications
You must be signed in to change notification settings - Fork 5
/
README
62 lines (43 loc) · 1.4 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
lrcat extractor
===============
Extract the data from Adobe Lightroom catalogs (currently version 2, 4
and 6) in order to facilitate importing it into another application.
This is written in Rust.
Requires:
- Rust (1.29)
- cargo to build
The is a crate (library) meant to be used by other applications. Its
goal is to abstract the format away into an API that can be used to
import into an application.
Building
--------
This is meant to be used by another application, so you need to add
to your `Cargo.toml` the crate:
`lrcat-extractor = 0.2.0`
To build the crate, simply:
$ cargo build
The crate comes with a dumper utility, that's used mostly for
debugging. It is hidden behind a "feature".
$ cargo run --features=binaries
Using
-----
```Rust
let mut catalog = Catalog::new(&path_to_catalog);
if catalog.open() {
// check the catalog is the right version
if !catalog.catalog_version.is_supported() {
println!("Unsupported catalog version");
return;
}
}
```
See the documentation hosted at https://docs.rs/lrcat-extractor/
You can also use `cargo doc` to generate it locally.
License
-------
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
See the LICENSE file in this repository.
Maintainer:
Hubert Figuière <[email protected]>