This could be replaced in the following places:
- In datapackage.rs, the DataPackage struct has a 'created' field, which should be "a RFC3339 datetime for when the WACZ file was created".
|
created: Local::now().to_rfc3339(), |
To replace this: write a function to turn system time into an RFC3399 string.
- In the indexer.
|
let timestamp = DateTime::parse_from_rfc3339(&record.timestamp).unwrap(); |
To replace this: write a function to parse an RFC3399 string and write out a CDXJ formatted one.
This is kind of playing code golf, an unnecessary optimisation; but it's a fun project. Doing this would reduce binary size (by how much?) and reduce dependencies (for easier packaging).
This could be replaced in the following places:
wacksy/src/datapackage.rs
Line 73 in cae2a62
To replace this: write a function to turn system time into an RFC3399 string.
wacksy/src/indexer.rs
Line 36 in cae2a62
To replace this: write a function to parse an RFC3399 string and write out a CDXJ formatted one.
This is kind of playing code golf, an unnecessary optimisation; but it's a fun project. Doing this would reduce binary size (by how much?) and reduce dependencies (for easier packaging).