You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2024/07/28 12:24:47 UTC
(opendal) branch main updated: feat(o): Add cargo-o layout (#4934)
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 22214de2af feat(o): Add cargo-o layout (#4934)
22214de2af is described below
commit 22214de2af8f64f7a398d1529960c5c91f65dc3d
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Sun Jul 28 20:24:37 2024 +0800
feat(o): Add cargo-o layout (#4934)
Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
.cargo/config.toml | 19 +++++++++++++++++++
dev/Cargo.lock | 7 +++++++
dev/Cargo.toml | 28 ++++++++++++++++++++++++++++
dev/src/main.rs | 20 ++++++++++++++++++++
4 files changed, 74 insertions(+)
diff --git a/.cargo/config.toml b/.cargo/config.toml
new file mode 100644
index 0000000000..3c81232ab2
--- /dev/null
+++ b/.cargo/config.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.
+
+[alias]
+o = "run --manifest-path ./dev/Cargo.toml --"
diff --git a/dev/Cargo.lock b/dev/Cargo.lock
new file mode 100644
index 0000000000..8c87366945
--- /dev/null
+++ b/dev/Cargo.lock
@@ -0,0 +1,7 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "odev"
+version = "0.0.1"
diff --git a/dev/Cargo.toml b/dev/Cargo.toml
new file mode 100644
index 0000000000..c7eda12b01
--- /dev/null
+++ b/dev/Cargo.toml
@@ -0,0 +1,28 @@
+# 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.
+
+[package]
+description = "Apache OpenDALâ„¢ Development Tools"
+name = "odev"
+
+authors = ["Apache OpenDAL <de...@opendal.apache.org>"]
+edition = "2021"
+homepage = "https://opendal.apache.org/"
+license = "Apache-2.0"
+repository = "https://github.com/apache/opendal"
+rust-version = "1.75"
+version = "0.0.1"
diff --git a/dev/src/main.rs b/dev/src/main.rs
new file mode 100644
index 0000000000..2f4454c78b
--- /dev/null
+++ b/dev/src/main.rs
@@ -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.
+
+fn main() {
+ println!("hello, world!")
+}