openai / openai/tiktoken

Tiktoken not published to cargo

Open
#24 12 comments 13 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
19.3k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

It seems that the tiktoken package is not linkable from Rust using Cargo's default registry.

Are there plans to publish the tiktoken crate? Is it published on another registry?

Thanks for your work on this BPE encoder, I've already found it very useful!


Repro:

In a rust project, run

cargo add tiktoken
Expected behavior:

Cargo should find, download and add tiktoken to the available crates

Actual behavior:
$ cargo add tiktoken
    Updating crates.io index
error: the crate `tiktoken` could not be found in registry index.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported cargo add tiktoken reproduction and verify whether a tiktoken crate is currently available on crates.io or another registry. The issue does not name files or tests; done would require an agreed publication path and a successful Cargo dependency lookup.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
release
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.