# 使用 Homebrew 安装 diesel

查看 diesel 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:diesel
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install diesel
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:diesel
- **软件包管理器:** Homebrew
- **版本:** 2.3.11
- **来源摘要:** Command-line tool for Rust ORM Diesel
- **主页:** <https://diesel.rs>
- **仓库:** <https://github.com/diesel-rs/diesel>
- **最后更新:** 2026-07-10T07:04:39Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- diesel (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.3.11
## 项目历史与用法

Diesel is a Rust ORM, query builder, and migration toolchain with a Homebrew-packaged CLI. Its public identity is type-safe database interaction for PostgreSQL, MySQL, and SQLite.

### 项目历史

The Diesel repository was created in 2015 and describes the project as a safe, extensible ORM and query builder for Rust. Its README emphasizes reducing database boilerplate while using Rust's type system to catch query errors at compile time.

The official guide places the CLI in the normal project workflow: set DATABASE_URL in .env, run diesel setup, generate migrations, and let diesel.toml guide generated schema output.

### 采用历史

Diesel grew with the Rust ecosystem as one of the main answers for developers who wanted SQL databases without giving up Rust's compile-time checks. The project publishes crates, API docs, guides, and frequent GitHub releases, which makes it natural for both Cargo and system package managers.

### 使用方式

Developers use the diesel CLI to set up projects, manage migrations, and generate schema files, while application code uses Diesel's derive macros and query builder. The common local convention is a project diesel.toml plus a .env file containing DATABASE_URL.

### 为什么软件包爱好者会关心

For package nerds, Diesel is notable because the Homebrew formula exposes only the CLI, but that binary is the operational face of a larger Rust crate ecosystem and database-migration workflow.

### 时间线

- 2015: The diesel-rs/diesel GitHub repository is created.
- 2025: Diesel 2.3.x releases continue active maintenance.
- 2026: Diesel 2.3.10 is published on GitHub releases.

### Related projects

- The diesel crate, diesel_cli, docs.rs API docs, and PostgreSQL, MySQL, and SQLite backends are the main adjacent pieces.

### 来源

- <https://github.com/diesel-rs/diesel>
- <https://api.github.com/repos/diesel-rs/diesel>
- <https://raw.githubusercontent.com/diesel-rs/diesel/master/README.md>
- <https://diesel.rs/guides/getting-started>
- <https://api.github.com/repos/diesel-rs/diesel/releases>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: diesel.toml, .env

## Credential files

- Unix: .env

## Combined YAML source

View the package source record on GitHub. [combined/diesel.yml](https://github.com/mxcl/pkgdb/blob/main/combined/diesel.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
