Skip to content

Commit

Permalink
Bump to version 0.3.0 (#115)
Browse files Browse the repository at this point in the history
* Bump to version 0.3.0

Signed-off-by: Xuanwo <[email protected]>

* Add wait

Signed-off-by: Xuanwo <[email protected]>

---------

Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo authored Jul 11, 2023
1 parent 5a58375 commit 08aff91
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ jobs:
with:
hdfs-version: ${{ matrix.hdfs-version }}

- name: Wait for hdfs startup
run: |
curl --retry 30 --retry-delay 1 --retry-connrefused http://${HDFS_NAMENODE_HTTP_ADDR}
- name: Test
run: |
export CLASSPATH=$(find $HADOOP_HOME -iname "*.jar" | xargs echo | tr ' ' ':')
Expand Down
7 changes: 3 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@ edition = "2021"
license = "Apache-2.0"
name = "hdrs"
repository = "https://github.com/Xuanwo/hdrs"
version = "0.2.0"
version = "0.3.0"

[package.metadata.docs.rs]
all-features = true

[features]
async_file = ["dep:futures", "dep:blocking", "dep:async-lock"]
async_file = ["dep:futures", "dep:blocking"]

[dependencies]
blocking = { version = "1.3.0", optional = true }
errno = "0.3"
futures = { version = "0.3", optional = true }
async-lock = { version = "2.3.0", optional = true }
blocking = { version = "1.3.0", optional = true }
# hdrs requires at least hadoop 2.3 to work.
# hadoop 2.2 doesn't handle FileNotFound correctly.
#
Expand Down
2 changes: 1 addition & 1 deletion src/async_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use std::pin::Pin;
use std::sync::Arc;
use std::task::{Context, Poll};

use async_lock::Mutex;
use blocking::Unblock;
use futures::lock::Mutex;
use futures::{ready, AsyncSeek};

use crate::File;
Expand Down

0 comments on commit 08aff91

Please sign in to comment.