Skip to content

Commit

Permalink
Specify rust toolchain explicitly, document how to change it
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Feb 13, 2025
1 parent 8554c76 commit a4faeb7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/source/contributor-guide/howtos.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@

# HOWTOs

## How to update the version of Rust used in CI tests

- Make a PR to update the [rust-toolchain] file in the root of the repository:

[rust-toolchain]: https://github.com/apache/datafusion/blob/main/rust-toolchain.toml

## How to add a new scalar function

Below is a checklist of what you need to do to add a new scalar function to DataFusion:
Expand Down
23 changes: 23 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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.

# This file specifies the default version of Rust used
# to compile this workspace and run CI jobs.

[toolchain]
channel = "1.84.1"
components = ["rustfmt", "clippy"]

0 comments on commit a4faeb7

Please sign in to comment.