Skip to content

Commit

Permalink
chore: add rust to ecosystem
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Beemer <[email protected]>
  • Loading branch information
beeme1mr committed Feb 21, 2025
1 parent af7088d commit 0be3672
Show file tree
Hide file tree
Showing 8 changed files with 483 additions and 2 deletions.
402 changes: 402 additions & 0 deletions docs/reference/technologies/server/rust.mdx

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/datasets/providers/flagd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,11 @@ export const Flagd: Provider = {
href: 'https://github.com/open-feature/python-sdk-contrib/tree/main/providers/openfeature-provider-flagd',
category: ['Server'],
},
{
technology: 'Rust',
vendorOfficial: true,
href: 'https://github.com/open-feature/rust-sdk-contrib/tree/main/crates/flagd',
category: ['Server'],
},
],
};
2 changes: 2 additions & 0 deletions src/datasets/sdks/ecosystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import PhpSvg from '@site/static/img/php-no-fill.svg';
import IosSvg from '@site/static/img/ios-no-fill.svg';
import RubySvg from '@site/static/img/ruby-no-fill.svg';
import AngularSvg from '@site/static/img/angular-no-fill.svg';
import RustSvg from '@site/static/img/rust-no-fill.svg';

const LogoMap: Record<string, EcosystemElement['logo']> = {
'c-sharp-no-fill.svg': CSharpSvg,
Expand All @@ -29,6 +30,7 @@ const LogoMap: Record<string, EcosystemElement['logo']> = {
'ios-no-fill.svg': IosSvg,
'ruby-no-fill.svg': RubySvg,
'angular-no-fill.svg': AngularSvg,
'rust-no-fill.svg': RustSvg,
};

export const ECOSYSTEM_SDKS: EcosystemElement[] = SDKS.map((sdk) => {
Expand Down
3 changes: 2 additions & 1 deletion src/datasets/sdks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ import { React } from './react';
import { Nestjs } from './nestjs';
import { Ruby } from './ruby';
import { Angular } from './angular';
import { Rust } from './rust';

export const SDKS = [Java, Nodejs, Nestjs, Dotnet, Go, Python, PHP, Web, React, Kotlin, Swift, Ruby, Angular];
export const SDKS = [Java, Nodejs, Nestjs, Dotnet, Go, Python, PHP, Web, React, Kotlin, Swift, Ruby, Angular, Rust];

export type SDK = {
/**
Expand Down
10 changes: 10 additions & 0 deletions src/datasets/sdks/rust.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { SDK } from '.';

export const Rust: SDK = {
name: 'Rust',
category: 'Server',
repo: 'rust-sdk',
logoKey: 'rust-no-fill.svg',
technology: 'Rust',
href: '/docs/reference/technologies/server/rust',
};
56 changes: 56 additions & 0 deletions src/datasets/sdks/sdk-compatibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -546,5 +546,61 @@
"path": "/docs/reference/technologies/server/ruby#extending"
}
}
},
{
"name": "Rust",
"path": "/docs/reference/technologies/server/rust",
"category": "Server",
"release": {
"href": "https://github.com/open-feature/rust-sdk/releases/tag/v0.2.5",
"version": "0.2.5",
"stable": false
},
"spec": {
"href": "https://github.com/open-feature/spec/releases/tag/v0.5.2",
"version": "0.5.2"
},
"features": {
"Providers": {
"status": "",
"path": "/docs/reference/technologies/server/rust#providers"
},
"Targeting": {
"status": "",
"path": "/docs/reference/technologies/server/rust#targeting"
},
"Hooks": {
"status": "",
"path": "/docs/reference/technologies/server/rust#hooks"
},
"Logging": {
"status": "",
"path": "/docs/reference/technologies/server/rust#logging"
},
"Domains": {
"status": "",
"path": "/docs/reference/technologies/server/rust#named-clients"
},
"Eventing": {
"status": "",
"path": "/docs/reference/technologies/server/rust#eventing"
},
"Tracking": {
"status": "",
"path": "/docs/reference/technologies/server/rust"
},
"Transaction Context Propagation": {
"status": "",
"path": "/docs/reference/technologies/server/rust"
},
"Shutdown": {
"status": "",
"path": "/docs/reference/technologies/server/rust#shutdown"
},
"Extending": {
"status": "",
"path": "/docs/reference/technologies/server/rust#extending"
}
}
}
]
2 changes: 1 addition & 1 deletion src/datasets/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export type EcosystemElement = {
category: Category[];
};

// TODO: should this just be a list of technolgies from the SDKs?
export type Technology =
| 'JavaScript'
| 'Java'
Expand All @@ -28,6 +27,7 @@ export type Technology =
| 'Ruby'
| 'React'
| 'Angular'
| 'Rust'
| 'NestJS';

export type Category = 'Server' | 'Client';
Expand Down
4 changes: 4 additions & 0 deletions static/img/rust-no-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0be3672

Please sign in to comment.