Open raphael10-collab opened 2 years ago
Thanks, I hadn't published an updated version of the argmap crate that had the appropriate change for stable rust. It's published now in argmap 1.1.2, so if you try to install again it might work now. Otherwise, you can use rust nightly with the rustup command.
@substack I tried to install argmap
but got these errors:
(base) raphy@pc:~/peermaps-web/GeoFiles$ cargo install argmap
Updating crates.io index
error: there is nothing to install in `argmap v1.1.2`, because it has no binaries
`cargo install` is only for installing programs, and can't be used with libraries.
To use a library crate, add it as a dependency in a Cargo project instead.
(base) raphy@pc:~/peermaps-web/GeoFiles$
As far as I understand the ingest
repo still contains version 1.1.0 of argmap
https://github.com/peermaps/ingest/blob/master/Cargo.toml#L23
I also git clone the peermaps-ingest
repo and modified in Cargo.toml
the dependencies list, updating argmap
to 1.1.2
version:
[dependencies]
eyros = "4.6.1"
georender-pack = "2.1.1"
desert = "2.0.0"
async-std = "1.10.0"
osm-is-area = "1.0.0"
random-access-disk = "2.0.0"
argmap = "1.1.2"
indoc = "1.0.3"
futures = "0.3.13"
osmpbf-parser = "1.3.1"
jemallocator = "0.3.2"
hashbrown = "0.9.1"
digit_group = "0.1.0"
Then I tried to install peermaps-ingest
using the updated configuration, but got these errors:
(base) raphy@pc:~/peermaps-web/ingest-folder$ cargo install --path .
Installing peermaps-ingest v4.0.1 (/home/raphy/peermaps-web/ingest-folder)
Updating crates.io index
Downloaded syn v1.0.94
Downloaded indoc v1.0.6
Downloaded object v0.28.4
Downloaded 3 crates (488.3 KB) in 0.43s
Compiling libc v0.2.125
Compiling proc-macro2 v1.0.38
Compiling unicode-xid v0.2.3
Compiling syn v1.0.94
Compiling cfg-if v1.0.0
Compiling memchr v2.5.0
Compiling futures-core v0.3.21
Compiling futures-io v0.3.21
Compiling version_check v0.9.4
Compiling pin-project-lite v0.2.9
Compiling slab v0.4.6
Compiling cc v1.0.73
Compiling cache-padded v1.2.0
Compiling log v0.4.17
Compiling fastrand v1.7.0
Compiling parking v2.0.0
Compiling waker-fn v1.1.0
Compiling crunchy v0.2.2
Compiling event-listener v2.5.2
Compiling tiny-keccak v2.0.2
Compiling once_cell v1.10.0
Compiling proc-macro-hack v0.5.19
Compiling getrandom v0.1.16
Compiling adler v1.0.2
Compiling lazy_static v1.4.0
Compiling futures-task v0.3.21
Compiling futures-channel v0.3.21
Compiling async-task v4.2.0
Compiling signal-hook v0.3.13
Compiling autocfg v1.1.0
Compiling pin-utils v0.1.0
Compiling atomic-waker v1.0.0
Compiling futures-sink v0.3.21
Compiling gimli v0.26.1
Compiling async-trait v0.1.53
Compiling futures-util v0.3.21
Compiling failure_derive v0.1.8
Compiling crossbeam-utils v0.8.8
Compiling ppv-lite86 v0.2.16
Compiling anyhow v1.0.57
Compiling crc32fast v1.3.2
Compiling fs_extra v1.2.0
Compiling rustc-demangle v0.1.21
Compiling byteorder v1.4.3
Compiling desert v2.0.1
Compiling mkdirp v1.0.0
Compiling ahash v0.4.7
Compiling regex-syntax v0.6.25
Compiling earcutr v0.1.1
Compiling hex v0.4.3
Compiling osm-is-area v1.0.0
Compiling indoc v1.0.6
Compiling digit_group v0.1.0
Compiling argmap v1.1.2
Compiling concurrent-queue v1.2.2
Compiling value-bag v1.0.0-alpha.9
Compiling async-mutex v1.4.0
Compiling async-lock v2.5.0
Compiling miniz_oxide v0.5.1
Compiling autocfg v0.1.8
Compiling backtrace v0.3.65
Compiling quick-protobuf v0.8.0
Compiling jemalloc-sys v0.3.2
Compiling hashbrown v0.9.1
Compiling hashbrown v0.6.3
Compiling addr2line v0.17.0
Compiling object v0.28.4
Compiling aho-corasick v0.7.18
Compiling futures-lite v1.12.0
Compiling async-channel v1.6.1
Compiling socket2 v0.4.4
Compiling signal-hook-registry v1.4.0
Compiling num_cpus v1.13.1
Compiling quote v1.0.18
Compiling getrandom v0.2.6
Compiling flate2 v1.0.23
Compiling rand_core v0.5.1
Compiling regex v1.5.5
Compiling async-executor v1.4.1
Compiling blocking v1.2.0
Compiling const-random-macro v0.1.13
Compiling rand_chacha v0.2.2
Compiling rand v0.7.3
Compiling const-random v0.1.13
Compiling ahash v0.2.19
Compiling unbounded-interval-tree v0.2.3
Compiling lru v0.4.3
Compiling osmpbf-parser v1.3.1
Compiling synstructure v0.12.6
Compiling ctor v0.1.22
Compiling futures-macro v0.3.21
Compiling async-attributes v1.1.2
Compiling failure v0.1.8
Compiling desert v1.0.3
Compiling polling v2.2.0
Compiling kv-log-macro v1.0.7
Compiling random-access-storage v4.0.0
Compiling async-io v1.6.0
Compiling async-global-executor v2.0.4
Compiling async-process v1.4.0
Compiling async-std v1.11.0
Compiling futures-executor v0.3.21
Compiling futures v0.3.21
Compiling georender-pack v2.1.1
Compiling jemallocator v0.3.2
Compiling random-access-disk v2.0.0
error[E0554]: `#![feature]` may not be used on the stable release channel
--> /home/raphy/.cargo/registry/src/github.com-1ecc6299db9ec823/georender-pack-2.1.1/src/lib.rs:1:12
|
1 | #![feature(drain_filter)]
| ^^^^^^^^^^^^
For more information about this error, try `rustc --explain E0554`.
error: could not compile `georender-pack` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `peermaps-ingest v4.0.1 (/home/raphy/peermaps-web/ingest-folder)`, intermediate artifacts can be found at `/home/raphy/peermaps-web/ingest-folder/target`
Caused by:
build failed
Output of rustc --explain E0554
:
Feature attributes are only allowed on the nightly release channel. Stable or
beta compilers will not comply.
Erroneous code example:
```
#![feature(lang_items)] // error: `#![feature]` may not be used on the
// stable release channel
```
If you need the feature, make sure to use a nightly release of the compiler
(but be warned that the feature may be removed or altered in the future).
May be because I'm not that acquainted to rust, but I do not know how to proceed. Would you be so kind in helping me?
In order to understand how to fully use
peermaps
I downloaded a smallpbf
file from https://download.geofabrik.de/europe/guernsey-jersey.html , and then tried to installpeermaps-ingest
:But got this error:
This is the complete output of
rustc --explain E0554
:O.S. : Ubuntu 20.04 Desktop
/tmp/cargo-installv9YQxE/.rustc_info.json :
rustc_info-json.txt
How to solve the problem?