This is an automated email from the ASF dual-hosted git repository.
wangweipeng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-fury.git
The following commit(s) were added to refs/heads/main by this push:
new 257564f4 chore(rust): Setup rustfmt and toolchain for rust (#1677)
257564f4 is described below
commit 257564f4d051595d657104f77b96f6d8203a7683
Author: Xuanwo <[email protected]>
AuthorDate: Thu Jun 6 20:21:25 2024 +0800
chore(rust): Setup rustfmt and toolchain for rust (#1677)
---
ci/run_ci.py | 2 --
rust/rust-toolchain.toml | 20 ++++++++++++++++++++
rust/rustfmt.toml | 19 +++++++++++++++++++
3 files changed, 39 insertions(+), 2 deletions(-)
diff --git a/ci/run_ci.py b/ci/run_ci.py
index df2c0d37..05c9fc1e 100644
--- a/ci/run_ci.py
+++ b/ci/run_ci.py
@@ -86,8 +86,6 @@ def _run_cpp():
def _run_rust():
- _exec_cmd("rustup component add clippy-preview")
- _exec_cmd("rustup component add rustfmt")
logging.info("Executing fury rust tests")
_cd_project_subdir("rust")
diff --git a/rust/rust-toolchain.toml b/rust/rust-toolchain.toml
new file mode 100644
index 00000000..870d7eb7
--- /dev/null
+++ b/rust/rust-toolchain.toml
@@ -0,0 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
+[toolchain]
+channel = "stable"
+components = ["rustfmt", "clippy"]
diff --git a/rust/rustfmt.toml b/rust/rustfmt.toml
new file mode 100644
index 00000000..39be343c
--- /dev/null
+++ b/rust/rustfmt.toml
@@ -0,0 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
+edition = "2021"
+reorder_imports = true
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]