Skip to content

Commit

Permalink
feat(package): update package.json/Cargo.toml
Browse files Browse the repository at this point in the history
Signed-off-by: suyanhanx <suyanhanx@gmail.com>
  • Loading branch information
suyanhanx committed Mar 2, 2023
1 parent b4def4b commit 95a4bf7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 25 deletions.
8 changes: 4 additions & 4 deletions bindings/nodejs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ crate-type = ["cdylib"]

[dependencies]
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
napi = { version = "2.11.1", default-features = false, features = ["napi4", "async"] }
napi-derive = "2.11.1"
opendal = { version = "0.28", path = "../../"}
napi = { version = "2", default-features = false, features = ["napi4", "async"] }
napi-derive = "2"
opendal = { version = "0.29", path = "../../"}
bytes = "1.4.0"
chrono = "0.4.23"
futures = "0.3.26"

[build-dependencies]
napi-build = "2.0.1"
napi-build = "2"

[profile.release]
lto = true
15 changes: 0 additions & 15 deletions bindings/nodejs/index.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
// Copyright 2022 Datafuse Labs
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.


const { existsSync, readFileSync } = require('fs')
const { join } = require('path')

Expand Down
6 changes: 0 additions & 6 deletions bindings/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,9 @@
"triples": {
"additional": [
"aarch64-apple-darwin",
"aarch64-linux-android",
"aarch64-unknown-linux-gnu",
"aarch64-unknown-linux-musl",
"aarch64-pc-windows-msvc",
"armv7-unknown-linux-gnueabihf",
"x86_64-unknown-linux-musl",
"x86_64-unknown-freebsd",
"i686-pc-windows-msvc",
"armv7-linux-androideabi",
"universal-apple-darwin"
]
}
Expand Down

0 comments on commit 95a4bf7

Please sign in to comment.