Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: yesolutions/mirror-action@master
with:
REMOTE: 'https://gitea.29bot.com/opensound-org/template-rs.git'
REMOTE_NAME: gitea
GIT_USERNAME: 29bot
GIT_PASSWORD: ${{ secrets.GITEA_PASSWORD }}
- uses: yesolutions/mirror-action@master
with:
REMOTE: 'https://gitee.com/opensound-org/template-rs.git'
Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased

## 0.0.1 - TBD

### Added

- Initial template structure
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ homepage = "https://github.com/opensound-org/template-rs"
description = """
🚧 Template for Rust repositories used by `opensound-org` (WIP, nothing usable for now).
"""
edition = "2021"
edition = "2024"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

# Because we used `rustc-check-cfg` in build script
# 因为我们在构建脚本中使用了`rustc-check-cfg`
# https://blog.rust-lang.org/2024/05/06/check-cfg.html
rust-version = "1.80.0"
# Because we are using 2024 Edition.
# 因为我们正在使用2024 Edition。
# https://blog.rust-lang.org/2025/02/20/Rust-1.85.0.html
rust-version = "1.85.0"

[package.metadata.docs.rs]
all-features = true
Expand All @@ -29,3 +29,5 @@ all-features = true

[build-dependencies]
version_check = "0.9.5"

[features]
12 changes: 6 additions & 6 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,24 @@

(WIP)[opensound-org](https://github.com/opensound-org) 使用的 Rust 项目的模板 🚧

[官网](https://opensound.run) | [crates.io](https://crates.io/crates/template-rs) | [docs.rs](https://docs.rs/template-rs/latest/template-rs)
[官网](https://opensound.run) | [crates.io](https://crates.io/crates/template-rs) | [docs.rs](https://docs.rs/template-rs/latest/template-rs) | [更新日志](CHANGELOG.md)

原始作者:[@czy-29](https://github.com/czy-29)

最新版本:[v0.0.1](https://github.com/opensound-org/template-rs/releases/tag/v0.0.1)

[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/opensound-org/template-rs)
![Crates.io Total Downloads](https://img.shields.io/crates/d/template-rs)
[![Crates.io Dependents](https://img.shields.io/crates/dependents/template-rs)](https://crates.io/crates/template-rs/reverse_dependencies)
![GitHub Repo stars](https://img.shields.io/github/stars/opensound-org/template-rs)

![MSRV (version)](https://img.shields.io/crates/msrv/template-rs/0.0.1?label=v0.0.1-msrv)
[![dependency status (version)](https://deps.rs/crate/template-rs/0.0.1/status.svg?subject=v0.0.1-deps)](https://deps.rs/crate/template-rs/0.0.1)

![MSRV (git)](https://img.shields.io/badge/git--msrv-1.80.0-blue)
![MSRV (git)](https://img.shields.io/badge/git--msrv-1.85.0-blue)
[![dependency status (git)](https://deps.rs/repo/github/opensound-org/template-rs/status.svg?subject=git-deps)](https://deps.rs/repo/github/opensound-org/template-rs)

[![Static Badge](https://img.shields.io/badge/build_with-Rust_1.84.0-dca282)](https://blog.rust-lang.org/2024/11/28/Rust-1.84.0.html)
[![Static Badge](https://img.shields.io/badge/build_with-Rust_1.87.0-dca282)](https://blog.rust-lang.org/2025/05/15/Rust-1.87.0/)

</div>

Expand Down Expand Up @@ -54,11 +55,10 @@

[Github](https://github.com/opensound-org/template-rs)是我们的[单一信源](https://en.wikipedia.org/wiki/Single_source_of_truth),这里我们欢迎所有的issue和pull request。

我们另有两个[自动推送](.github/workflows/mirror.yml)的下游只读镜像:
- [Gitea](https://gitea.29bot.com/opensound-org/template-rs)
我们另有一个[自动推送](.github/workflows/mirror.yml)的下游只读镜像:
- [Gitee](https://gitee.com/opensound-org/template-rs)

由于它们是只读镜像,因此请不要在这两个平台上发起任何合并请求或pull request。
由于它是只读镜像,因此请不要在这个平台上发起任何合并请求或pull request。

除非您另有明确说明,否则您有意提交的
包含在 `template-rs` 中的任何贡献(如 Apache-2.0 许可证中所定义)均应
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,24 @@ English | [简体中文](README-CN.md)

(WIP) Template for Rust projects used by [opensound-org](https://github.com/opensound-org) 🚧

[Website](https://opensound.run) | [crates.io](https://crates.io/crates/template-rs) | [docs.rs](https://docs.rs/template-rs/latest/template-rs)
[Website](https://opensound.run) | [crates.io](https://crates.io/crates/template-rs) | [docs.rs](https://docs.rs/template-rs/latest/template-rs) | [Changelog](CHANGELOG.md)

Original Author: [@czy-29](https://github.com/czy-29)

Latest version: [v0.0.1](https://github.com/opensound-org/template-rs/releases/tag/v0.0.1)

[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/opensound-org/template-rs)
![Crates.io Total Downloads](https://img.shields.io/crates/d/template-rs)
[![Crates.io Dependents](https://img.shields.io/crates/dependents/template-rs)](https://crates.io/crates/template-rs/reverse_dependencies)
![GitHub Repo stars](https://img.shields.io/github/stars/opensound-org/template-rs)

![MSRV (version)](https://img.shields.io/crates/msrv/template-rs/0.0.1?label=v0.0.1-msrv)
[![dependency status (version)](https://deps.rs/crate/template-rs/0.0.1/status.svg?subject=v0.0.1-deps)](https://deps.rs/crate/template-rs/0.0.1)

![MSRV (git)](https://img.shields.io/badge/git--msrv-1.80.0-blue)
![MSRV (git)](https://img.shields.io/badge/git--msrv-1.85.0-blue)
[![dependency status (git)](https://deps.rs/repo/github/opensound-org/template-rs/status.svg?subject=git-deps)](https://deps.rs/repo/github/opensound-org/template-rs)

[![Static Badge](https://img.shields.io/badge/build_with-Rust_1.84.0-dca282)](https://blog.rust-lang.org/2024/11/28/Rust-1.84.0.html)
[![Static Badge](https://img.shields.io/badge/build_with-Rust_1.87.0-dca282)](https://blog.rust-lang.org/2025/05/15/Rust-1.87.0/)

</div>

Expand Down Expand Up @@ -54,11 +55,10 @@ at your option.

[Github](https://github.com/opensound-org/template-rs) is our [single source of truth](https://en.wikipedia.org/wiki/Single_source_of_truth), where we welcome all issues and pull requests.

We also have two downstream read-only mirrors that are [automatically pushed](.github/workflows/mirror.yml):
- [Gitea](https://gitea.29bot.com/opensound-org/template-rs)
We also have a downstream read-only mirror that is [automatically pushed](.github/workflows/mirror.yml):
- [Gitee](https://gitee.com/opensound-org/template-rs)

As they are read-only mirrors, please do not initiate any merge or pull requests on these two platforms.
As it is a read-only mirror, please do not initiate any merge or pull requests on this platform.

Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in `template-rs` by you, as defined in the Apache-2.0 license, shall be
Expand Down
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#![cfg_attr(nightly, feature(doc_auto_cfg))]
#![allow(rustdoc::broken_intra_doc_links)]

//! 🚧 Template for Rust repositories used by `opensound-org` (WIP, nothing usable for now).
//!
//! This is a template repository for Rust projects in the opensound-org organization.
//! Replace this documentation with your actual project description.

pub fn add(left: usize, right: usize) -> usize {
left + right
Expand Down