Questions tagged [crate]

Avoid this ambiguous tag. For CrateDB, use [cratedb]. For Rust crates, use [rust-crates]. For Ruby crate, use [ruby-crate].

CrateDB is a new breed of database to serve today’s mammoth data needs. Based on the familiar SQL syntax, CrateDB combines high availability, resiliency, and scalability in a distributed design that allows you to query mountains of data in realtime.

More questions? Join us on Slack!

148 questions
15
votes
3 answers

Compilation error: can't find crate for `core`

I'm using Rust 1.35.0 to try out some Rust examples and I could not get it to compile, as I keep getting the following message: error[E0463]: can't find crate for `core` I ran rustc --explain E0463 and I see the following message: You need to link…
joesan
  • 13,963
  • 27
  • 95
  • 232
6
votes
3 answers

How can I use a library that is not on crates.io?

I want to use this library: https://github.com/stepfunc/dnp3, but it is not on crates.io, it only has a repository and I can't implement it. I tried to add it to my Cargo.toml like [dependencies] dnp3 = "0.9.1" but it says that it does not exist,…
6
votes
1 answer

Local crate in Rust

I am currently learning Rust, and for that purpose I wanted to create my own crate and use it. However, Rust can't find this crate. I have the following file structure: ├───minimal │ ├───Cargo.toml │ └───src │ └───main.rs └───util …
user2089648
  • 1,356
  • 2
  • 17
  • 31
5
votes
1 answer

How to better understand Crate in Rust?

In this book- Rust By Example,Chapter 11: A crate is a compilation unit in Rust. Whenever rustc some_file.rs is called, some_file.rs is treated as the crate file. According to this book, what about the source file ? The Rust Reference | Crates…
BertKing
  • 513
  • 5
  • 13
5
votes
1 answer

Migrating from MySQL to Crate

I have just spent some time experimenting with Crate - crate.io - and first impressions are good. If my understanding is right Crate is a NoSQL DB that provides a rather neat SQL interface for manipulating and querying the database. Nice! However,…
DroidOS
  • 8,530
  • 16
  • 99
  • 171
4
votes
1 answer

Problem crating a Ranger model with R to use for MLflow

I am trying to use MLflow in R. According to https://www.mlflow.org/docs/latest/models.html#r-function-crate, the crate flavor needs to be used for the model. My model uses the Random Forest function implemented in the ranger package: model <-…
Fabian S.
  • 41
  • 1
4
votes
2 answers

How can I deploy a crate cluster on Giant Swarm?

I have been trying to set up a working crate cluster on Giant Swarm for quite a while now but haven't been really successfull so far. Here are my attempts so far: Using multicast and deploying crate as a single component. This works if all…
Bricktop
  • 1,549
  • 14
  • 23
3
votes
1 answer

Why do I get "expected type Future" error using match statement on Result?

I'm trying to use a function in an external crate, it is supposed to return a Result struct as implied by the function's signature: pub async fn market_metrics(symbols: &[String]) -> Result, ApiError> I'm trying to…
orie
  • 541
  • 6
  • 20
3
votes
1 answer

Can we download something & set environment variable during crate installation?

As a Rust driver crate developer, I would like to perform below steps during my crate installation/download when used by any other Rust program: Check the platform i.e. Windows or UNIX or macOS. Download the corresponding platform-specific binary…
3
votes
0 answers

CrateDB Bind Local IP

I have setup 3 node with same cluster. Is there any way to bind local ip for individual createdb node which can only be accessible from same host ? I tried following but not working. crate01: image: crate container_name: raycrate01 …
Bhargav Patel
  • 1,098
  • 10
  • 23
3
votes
1 answer

How to load data from Kafka into CrateDB?

From the following issue at CrateDB GitHub page it seems it is not possible, i.e., the Kafka protocol is not supported by CrateDB. https://github.com/crate/crate/issues/7459 Is there another way to load data from Kafka into CrateDB?
romulog
  • 33
  • 5
3
votes
1 answer

CRATE 0.28.0.1 and elasticsearch-cloud-aws plugin compatibility

We are going to use CRATE with elasticsearch-cloud-aws plugin for ES to create backups. It looks like current version 0.28.0.1 (from deb package) has an issue with run time environment for aws plugin. It says: {1.0.1}: Initialization Failed ... -…
Vlad Vlaskin
  • 110
  • 8
2
votes
1 answer

How to make an item visible in my binary crate targets but not any other crates?

I would like to generate multiple binaries using a lot of the same common code. If I write everything in src/main.rs I can simply mark items at pub(crate) and access the code without exporting it. However if I put the binary in src/bin/foo.rs then I…
Kevin Cox
  • 3,080
  • 1
  • 32
  • 32
2
votes
0 answers

Rust can't find extern crate for a extern crate

error: extern location for void does not exist: C:\Rust Projects\imap_project\target\debug\deps\libvoid-9f5065312e4dff17.rlib error[E0463]: can't find crate for void --> …
Arndroid
  • 314
  • 3
  • 13
2
votes
1 answer

Crate: Why require the PRIMARY KEY column to be present in a PARTITIONED BY clause?

can you help me understand what I am reading in this documentation? https://crate.io/docs/reference/sql/partitioned_tables.html In these example tables, column id long is not a primary_key; indeed, id could not be a primary key here, because as…
linked
  • 1,258
  • 1
  • 14
  • 25
1
2 3
9 10