Joonas Koivunen
44f30ac8b5
doc(unixfs): correct doc for ResolveError::UnexpectedType
2020-08-25 12:36:37 +03:00
Joonas Koivunen
3fa42e1f2e
add: dagpb NodeData wrapper
...
if I am correct, this is not strictly needed but I wrote it while being
stuck on other things. this allows "reusing" the existing
bitswap::Blocks Box<[u8]> allocation and serving a subslice of it as the
node data, per deserialization.
2020-08-25 12:35:42 +03:00
Caio
5e86951115
Rustfmt
2020-08-24 12:54:57 -03:00
Caio
3b109a1ffe
Use alloc crate where is applicable within unixfs
2020-08-24 12:54:40 -03:00
Caio
2f395906bc
Use core crate where is applicable within unixfs
2020-08-23 12:07:16 -03:00
Caio
ffde6a3d03
Clippy
2020-08-17 12:27:49 -03:00
Joonas Koivunen
da316aec33
doc: suggestions from code review
...
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-08-14 16:29:16 +03:00
Joonas Koivunen
42e1d5309d
doc: minor touchups
...
tried to look into how should the links be done today but I guess there
are still some nightly shenanigans so cannot really preview before
publishing.
2020-08-14 16:00:29 +03:00
Joonas Koivunen
3176976ba2
doc: revisit file.rs docs
2020-08-14 15:51:35 +03:00
Joonas Koivunen
b671a767f1
doc: unify top-level mod summaries
2020-08-14 15:49:20 +03:00
Joonas Koivunen
b495c57a1f
chore: update README.md
2020-08-14 15:47:20 +03:00
Joonas Koivunen
2a68d04a81
chore: use correct PR for unixfs symlinks
2020-08-14 15:23:03 +03:00
Joonas Koivunen
1e79d9e81d
chore: bump unixfs 0.1.0
2020-08-14 15:18:16 +03:00
Joonas Koivunen
472471f282
chore: update CHANGELOG
2020-08-14 15:18:16 +03:00
Joonas Koivunen
a6728b58c7
fix: use latest walker api
2020-08-14 14:54:50 +03:00
Joonas Koivunen
3dd7caf01c
add: quite verbose test cases around symlinks
2020-08-14 14:40:21 +03:00
Joonas Koivunen
d505fdf284
feat: serialization of symlink blocks
2020-08-14 14:40:21 +03:00
bors[bot]
d2760bb4d5
Merge #294
...
294: Remove Walker indirection r=koivunej a=c410-f3r
Fixes #200 .
By using mutable references instead of taking ownership, the following is now possible:
```rust
ContinuedWalk::Symlink(bytes, _, path, metadata) => {
...
}
// Instead of
ContinuedWalk::Symlink(bytes, item) => {
if let Entry::Metadata(metadata_entry) = item.as_entry() {
...
}
}
```
Co-authored-by: Caio <c410.f3r@gmail.com>
Co-authored-by: Joonas Koivunen <joonas@equilibrium.co>
2020-08-14 11:36:11 +00:00
ljedrz
e2a2b5abcb
chore: future(/feature)-proof the criterion dep
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-08-14 11:30:20 +02:00
Joonas Koivunen
d2ea05f64a
doc: update comments regarding buckets
2020-08-14 10:32:10 +03:00
Joonas Koivunen
e129973e03
refactor: restore custom fmt::Debug for InnerEntry
...
this needs to follow Cid as we don't really need the Cid's fmt::Debug
impl.
2020-08-14 10:32:10 +03:00
Joonas Koivunen
59deeca4ae
doc: remove completed FIXME
2020-08-14 10:26:33 +03:00
Joonas Koivunen
7c50ce435a
doc: update comments
2020-08-14 10:23:03 +03:00
Joonas Koivunen
e300e149dc
refactor: remove unnecessary lifetime
2020-08-14 10:19:56 +03:00
Joonas Koivunen
a94536b882
refactor: revert unneeded change
2020-08-14 10:19:56 +03:00
Joonas Koivunen
9f979effcb
refactor: revert unnecessary match changes
2020-08-14 10:19:53 +03:00
Joonas Koivunen
a5e3bbbb98
refactor: reorder InnerEntry, Kind
2020-08-14 10:19:53 +03:00
Joonas Koivunen
4ba9a74b7a
refactor: revert unnecessary visibility
2020-08-14 10:19:49 +03:00
Joonas Koivunen
e5e43e4322
refactor: reorder back link conversions
2020-08-14 09:40:08 +03:00
Joonas Koivunen
9f3ab40dcd
refactor: reorder back ContinuedWalk, FileSegment, Error
2020-08-14 09:39:18 +03:00
Caio
457cd428fa
Remove inconsistent variants
2020-08-13 10:24:35 -03:00
ljedrz
a9712ef740
chore: put Rust-IPFS contributors as authors
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-08-11 15:14:43 +02:00
Joonas Koivunen
aaabc37562
doc: suggestions and notes from code review
...
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-08-10 12:04:03 +03:00
Joonas Koivunen
276e4b7441
bench: filter symlinks earlier
2020-08-10 11:45:58 +03:00
Joonas Koivunen
14c27fd1b8
bench: move buffer and fix path growing outside
2020-08-10 11:44:10 +03:00
Joonas Koivunen
665c0c4f85
doc: comment touch ups
2020-08-10 09:23:11 +03:00
Joonas Koivunen
bfc1bf167c
refactor: rename put_file => put_link
2020-08-10 09:22:58 +03:00
Joonas Koivunen
9df95ad1e8
refactor: remove duplicated ingest-tar example, it remains as bench
2020-08-10 09:13:44 +03:00
Joonas Koivunen
7446810982
doc: minor docs and fmt
2020-08-09 22:24:36 +03:00
Joonas Koivunen
71b02cf370
chore: cargo keeps changing the index file, clippy
...
not sure what is the index file hash change.
2020-08-09 22:24:36 +03:00
Joonas Koivunen
5484f3ed8f
fix: make the benchmark more generic
2020-08-09 22:24:36 +03:00
Joonas Koivunen
28392da979
chore: cleanup, doc
2020-08-09 22:24:36 +03:00
Joonas Koivunen
3d48caa079
refactor: custom pb types to own module
2020-08-09 22:24:36 +03:00
Joonas Koivunen
3876717e5d
doc: cleanup, rename, docs
2020-08-09 22:24:36 +03:00
Joonas Koivunen
56f1970d7b
fix: use knowledge of longest path
...
this saves a few resizes but no effect in bench.
2020-08-09 22:24:36 +03:00
Joonas Koivunen
19a62e23dc
refactor: use BTreeMap in dir_builder
...
this allows us to get the unique and sorted links right away, allowing
to use Vec<Option<(...)>> later.
2020-08-09 22:24:36 +03:00
Joonas Koivunen
eb58b8b15e
test: output "actual" on test failure
2020-08-09 22:24:36 +03:00
Joonas Koivunen
bcab2bd3b1
refactor: move Visited under iter.rs
2020-08-09 22:24:36 +03:00
Joonas Koivunen
dc4ff9cee8
add: tar ingestion example, bench
...
copypaste sadly
2020-08-09 22:24:20 +03:00
Caio
09f44d18f2
Use mutable ref instead of taking ownership
...
Walker was being moved for each iteration and this was being a problem
for proper `Entry` matching.
Removes `Item` indirection and `continue_walk(self, ...)` is now
`inspect(&mut self, ...)`.
2020-08-09 13:52:14 -03:00