https://opendal.apache.org/ logo
Leapfrog must use nightly rust version
# general
t
@Xuanwo Hello, When I try to implement the issue (https://discord.com/channels/1081052318650339399/1081052319342407715/1120914983358832680). Leapfrog must use nightly rust version (not be used on the stable channel). So I have a question is that it should be integrated into openDAL? I guess openDAL use stable channel.
x
You are right
After checkout the leapfrog's code, I found it's using
allocator_api
feature.
Would you like to submit an issue to leapfrog to keep allocator_api as a feature instead?
We often add a
nightly
feature for this.
t
Cool!!
I can follow the thread until it be fixed.
Maybe I can try to solve another issue at the same time.
x
leapfrog has released a new version that able to run under stable channel!
cc @taijuwu
t
OK. I will try it!!
@Xuanwo There is a question:
Copy code
error[E0277]: the trait bound `&str: leapfrog::Value` is not satisfied
   --> core/src/services/azblob/backend.rs:297:43
    |
297 |         let mut conn_map: HashMap<_, _> = HashMap::default();
    |                                           ^^^^^^^^^^^^^^^^ the trait `leapfrog::Value` is not implemented for `&str`
    |
    = help: the following other types implement trait `leapfrog::Value`:
              i16
              i32
              i64
              i8
              u16
              u32
              u64
              u8
              usize
    = note: required for `leapfrog::HashMap<&str, &str>` to implement `std::default::Default`
It seems to require me to implement default value for &str type. So do I have to modify the leapfrog package? Or do you have any suggestion to deal this problem?
x
I'm a bit confused. Why you are changing
services/azblob
?
I expect to implement a new service that based on leapfrog instead of replace HashMap.
t
Oh... I got a mistake. I thought it is used to replace HashMap to achieve the purpose of speeding up. Maybe I need to think how to use this pacjage.
2 Views