# 使用 Homebrew, Nix 安装 typeshare

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

## 安装

```sh
sudo av install brew:typeshare
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install typeshare
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#typeshare
```

  证据: nixpkgs package indexes: pkgs/by-name/ty/typeshare/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:typeshare
- **软件包管理器:** Homebrew
- **版本:** 1.13.4
- **来源摘要:** Synchronize type definitions between Rust and other languages for seamless FFI
- **主页:** <https://github.com/1Password/typeshare>
- **仓库:** <https://github.com/1Password/typeshare>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- typeshare (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Typeshare is a Rust-based developer tool from 1Password for generating matching type definitions in other languages from Rust source types. In package-manager catalogs it occupies the code-generation and FFI niche: a small command-line utility installed as `typeshare` for teams that want Rust-owned schemas to drive Swift, Kotlin, Scala, TypeScript, Go, or Python bindings.

### 项目历史

The public GitHub repository was created in September 2022 under the 1Password organization. Its README describes the project as a way to remove the manual work of keeping FFI-facing Rust types synchronized with equivalent forms in other languages, using serde-oriented Rust definitions and a `#[typeshare]` annotation model.

By the 1.x series the project was organized as several Rust crates, including `typeshare`, `typeshare-core`, `typeshare-annotation`, and `typeshare-cli`. The README points users to a dedicated Typeshare book and documents command-line generation into Kotlin, Swift, Scala, and TypeScript files, with Go and Python marked as experimental in the official README.

### 采用历史

Official public adoption evidence is mostly packaging and registry based rather than a broad ecosystem narrative. The input package facts list Homebrew and Nix packaging, while the upstream README advertises crates.io crates and the `cargo install typeshare-cli` path.

The project remained active after its initial publication: GitHub release metadata shows 2024 and 2025 1.x releases, including v1.13.4 published in December 2025.

### 使用方式

A typical use is to mark Rust structs and enums with `#[typeshare]`, then run `typeshare ./my_rust_project --lang=typescript --output-file=...` or an equivalent target-language command. The generated files become the foreign-language side of a Rust-centered serialization or FFI boundary.

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

Typeshare matters to package nerds because it turns a cross-language type-sync problem into an installable CLI workflow. It is especially relevant in Rust-heavy shops where package recipes, CI jobs, and generated artifacts need to keep mobile, web, and backend type definitions aligned without maintaining separate schema sources.

### 时间线

- 2022: Public GitHub repository created under 1Password.
- 2024: v1.11.0 and v1.12.0 releases published.
- 2025: v1.13.4 published on GitHub releases.

### Related projects

- The README positions Typeshare around Rust, serde, and FFI/code-generation workflows rather than as a general serialization framework. It is related in practice to Rust procedural-macro crates and schema/codegen tools used to share types across language boundaries.

### 来源

- <https://1password.github.io/typeshare>
- <https://api.github.com/repos/1Password/typeshare>
- <https://api.github.com/repos/1Password/typeshare/releases>
- <https://github.com/1Password/typeshare#readme>
- source_facts.package-manager


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 其他软件包管理器记录

- Nix - typeshare: normalized package name match | nixpkgs package indexes: pkgs/by-name/ty/typeshare/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
