Comments (2)
Do you mean the RawString
type from the javascript @automerge/automerge/next
package? If so there would be nothing to do in this package I think. The equivalent of RawString
in autosurgeon
is String
.
However, with the advent of automerge/next
more people will be using Text
(as in the RGA text CRDT in automerge) where previously they would have been using String
and we might want to introduce equivalent functionality in autosurgeon
. One way to do that would be to extend the autosurgeon
attribute for strings like this:
#[dervive(Hydrate, Reconcile)]
struct Contact{
#[autosurgeon(representation = "text")]
name: String
}
In general I think we should be using newtypes which implement Hydrate
/Reconcile
to achieve this kind of thing but for string specifically this feels like it might be worth it given that it is so ubiquitous?
from autosurgeon.
Yes that's exactly what I mean, thanks! Just trying to get ahead of that change and know what would need to be done and documented for automerge/next or automerge3 or whenever it lands.
from autosurgeon.
Related Issues (20)
- `#[derive(Reconcile)]` produces invalid code if enum has variants with both one and multiple tuple fields HOT 2
- Build docs.rs with all features HOT 2
- Observability API HOT 1
- Save/load support HOT 1
- Add historical hydrate HOT 2
- Old key is not deleted when updating an enum between variants
- Add support for HashMap & BTreeMap with parseable keys HOT 2
- Removing outer elements in nested `Vec` produces unexpected results HOT 4
- Add extra-traits feature to syn
- Reconcile fails to remove an element from a map HOT 1
- Fix trait errors with automerge HOT 3
- Optional or Default Hydration HOT 4
- Fix trait errors with overriden automerge HOT 2
- Add Reconcile to Set types HOT 5
- Can't use reconcile/hydrate with an Automerge Transaction due to StaleHeads HOT 1
- Unexpected uint error with newtype wrapper HOT 2
- Autosurgeon reconcile not clearing all old data HOT 1
- Deriving `Reconcile` on a struct with a `MaybeMissing` leads to compilation error HOT 1
- feature request: Better tolerance for missing fields in derived hydrate for forward-compatibility HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autosurgeon.